About Store Forum Documentation Contact



Post Reply 
[Solved] EE 2.0 - UID questions
Author Message
Tottel Offline
Member

Post: #1
[Solved] EE 2.0 - UID questions
How exactly do I load the environment settings in the code for my world?

I tried by using
Code:
Game.World.settings().environment.get(UID(3701285546, 1173120700, 1344400027, 2942583411));

But that gives me an error that it can't convert the 'this' pointer.

EDIT: Secondly, can we load GuiObjs from UID?
(This post was last modified: 02-16-2013 06:44 PM by Tottel.)
02-16-2013 03:47 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: EE 2.0 - UID questions
Hi,

1) drag and drop environment element onto opened world editor viewport (this will assign Game.World.settings().environment)
2) in the codes if(Game.World.settings().environment)Game.World.settings().environment->set();

you can use
GuiObjs obj;
obj="jakshdkagsdjahsdgj"; // use Ctrl+Shift+RMB on proj element to copy its text file ID here
02-16-2013 05:55 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #3
RE: EE 2.0 - UID questions
Both work fine, thanks. smile
02-16-2013 06:43 PM
Find all posts by this user Quote this message in a reply
Post Reply