- Home /
Assign material and guiskin to variables
I have a material called White Unlit and a guiSkin called GUISkin, these are stored in the Materials and GUISkins folder.
I have a script that requires these to be set so they can be used on some GUI elements. The script's overall function is here. http://www.41post.com/?p=4545 it's used to make speech balloons.
var mat:Material;
var skin:GUISkin;
how do I assign these to the variables. Right now I have to do it manually from the menu.
Thanks, Dan
Comment
Best Answer
Answer by cmauceri · Jan 21, 2012 at 07:18 PM
Materials and GUISkins are both Assets. I think the post Accessing Assets from Code answers your question.