Tottel
Member
|
[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 |
|
Esenthel
Administrator
|
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 |
|
Tottel
Member
|
RE: EE 2.0 - UID questions
Both work fine, thanks.
|
|
02-16-2013 06:43 PM |
|