shinyoung Posted November 12, 2020 Share Posted November 12, 2020 Hi I want to make the hidden box appear after clicking on the box. but, I don't know what to do with xml and C#. Like Unity 3d, Editor tries to create a script and apply it to the object, but it is not working. I want to make the right cube appear when I click on the left one as shown in the picture below. I'd appreciate it if you could tell me how. Link to comment
karpych11 Posted November 12, 2020 Share Posted November 12, 2020 Hello, I created a simple C# component CubeClick with an example like this. Add this component to any object in the world, and set the target cube and hidden cube. Clicking on the target cube will turn the hidden cube on and off. CubeClick.cs 1 Link to comment
shinyoung Posted November 12, 2020 Author Share Posted November 12, 2020 karpych11 Thanks a lot.!!!!!!!!!!! Link to comment
Recommended Posts