For the wheel scene, each slice will have this script on the gameObject, and each will load a specified color and icon.
I used the WWW class to link the url for the image, check for an error in the www, and place the image onto a child object of the slice.
Each slice and child object is given a Transparent/Diffuse shader to keep transparency.
In the future, I am planning to replace the urls with references to the Resourses folder, so the placement is not hard coded in. I always want to look into a more efficient way to single out nodes, rather than cycling through child nodes.
No comments:
Post a Comment