- Home /
How do I open and close a canvas in game?
I have a canvas all set up and working to show and interact with my inventory. But I can't get it to open and close by changing it's active status in game
How do call it and change it's status?
Comment
Answer by MajdHamada · May 02, 2015 at 08:32 PM
if You are using Java ... Use This Script
import UnityEngine.UI;
var YourCanvas :Canvas;
function Start () {
YourCanvas.Enabled = true;
}
import UnityEngine.UI; This Allows You to Use UI System in Scripts:)
Your answer
Follow this Question
Related Questions
About Inventory 0 Answers
Inventory takes a long time to open the first time 0 Answers
Toggle Inventory script 1 Answer
Need advice in approaching a visibility mechanic through collision [Unity3d] 0 Answers
How do I make an instantiated UI GameObject visible without parenting it to the Canvas? 1 Answer