CrypticTick4 Posted November 21, 2019 Share Posted November 21, 2019 Just wanting to see if there are any tips out there for creating a script in C# to open and close a specific Canvas, called Welcome_Canvas in Unity, using voice recognition in a scene without a new Canvas being created. Doing a class project and do not have much C# coding experience in Visual Studio. I already have a basic script to create cubes and spheres of varying size and just need to adapt it to open and close a desired Canvas. Attached is the code in VS to create a new Cube/Sphere. Any and all help is greatly appreciated. @Corvus VoiceRecognition.cs Link to comment Share on other sites More sharing options...
Corvus Posted December 3, 2019 Share Posted December 3, 2019 You will need a reference to the Canvas object and you can enable/disable the object to "open" and "close" it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now