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?
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: Skybox not staying?

(10-21-2011, 01:04 PM)Apjjm Wrote: 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.
So if i don't use the script, will it still be there in the main game if i include it in the custom story directory?

10-21-2011, 01:28 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)