Helppp meee about making Cube... Urgent...
My friends..
Firstly, I am new in Unity... I want to make a cube like normal one.. Cube has 6 sides. I want to add colors on cube's 4 sides randomly.
For example in this picture..
But I need to add URL on sides.
For example , If 3rd side is Pink, When I click pink side of cube. It directs me to website like (facebook.com)..
How can I do it ? Please help me .. I know C#. If you do and share with me , I will be Happy :)
Thanks..
Answer by hexagonius · Oct 17, 2015 at 03:18 PM
you can access the color data of the cube through the Mesh class, assigning colors for each vertex. for the touch, you will be able to get the triangle you clicked on through the RaycastHit that's returned by Physics.Raycast. Since you know what colors you assigned, you should be able to call the right URL.
Your answer
Follow this Question
Related Questions
Cube is shaking. 0 Answers
Object Jump 0 Answers
How to add manual generated color ? 0 Answers
I'm having a few issues with (Catmull)Splines that i need help with. 1 Answer
How can I make a game similar to Lego Universe (sort of like a replica) 0 Answers