Is it possible to hide/disable existing menu items like GameObjects/UI,GameObjects/2D Object etc…
I can’t seem to find anything about this.
Thanks in advance.
Is it possible to hide/disable existing menu items like GameObjects/UI,GameObjects/2D Object etc…
I can’t seem to find anything about this.
Thanks in advance.
yes it’s possible
its an example :
var MainCan : Canvas;
var Slider : UI.Slider;
function Start () {
//this will show or hide your canvas
MainCan.enabled = true;
// this will active or deactivate your slider
Slider.IsActive = false;
}
you can also see :
Scripting API > UnityEngine > UnityEngine.UI > Classes
http://docs.unity3d.com/ScriptReference/UI.Button.html
If this answer help you , you can vote up or select it