- Home /
GUILayout to NGUI
I got a GUILayout script that I would like to move over to NGUI, I already setup NGUI but I just can't figure out how to link it?
GUILayout.BeginHorizontal();
GUILayout.Label("Time..................", GUILayout.Width(label_width));
sky.Cycle.Time = GUILayout.HorizontalSlider (sky.Cycle.Time, 0, 24);
GUILayout.EndHorizontal();
How do I call the function in NGUI??
Link what? You've already got NGUI. Why would you still be needing anything from UnityGUI?
You Don't, if your using NGUI, don't use Unity GUI both are built different and can't really interact with each other.
Ok, but how can I access sky.Cycle.Time within NGUI? Can't make sense of it.
Please go over the examples that come with NGUI, there's one about sliders and whatnot.
Your answer
Follow this Question
Related Questions
NGUI Input: How can I allow player to input his name? 0 Answers
nGUI how to deactivate UICheckbox by script? 1 Answer
Unity 4.6 UI - Trigger OnClick event via script 1 Answer
NGUI panel wont hide 2 Answers
ngui tween in fixedupdate or update 1 Answer