Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help Skybox not staying?
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#2
RE: Skybox not staying?

One way to avoid this is to just set the skybox through the script. That way you can use whatever background colour makes it easiest to edit with in the editor.
void OnStart()
{
//May also want to use: SetSkyBoxColor(float afR, float afG, float afB, float afA)
SetSkyBoxTexture("My_Texture_File_Name_With_Extension");
SetSkyBoxActive(true);
}

The reason why it "forgets" the skybox texture is because the custom stories directory isn't in the list of directories the editor loads in iirc. The editor only uses the file name and not the full path and then performs a search to find the texture inside the loaded directories.
The main game doesn't do this due to the way resources are loaded for CS's- which is why it shows up in the main game but not the editor.
(This post was last modified: 10-21-2011, 01:07 PM by Apjjm.)
10-21-2011, 01:04 PM
Find


Messages In This Thread
Skybox not staying? - by flamez3 - 10-21-2011, 12:58 PM
RE: Skybox not staying? - by Apjjm - 10-21-2011, 01:04 PM
RE: Skybox not staying? - by flamez3 - 10-21-2011, 01:28 PM
RE: Skybox not staying? - by Apjjm - 10-21-2011, 02:02 PM
RE: Skybox not staying? - by Your Computer - 10-21-2011, 03:26 PM



Users browsing this thread: 1 Guest(s)