I have been working whit Unity3D for awhile, and I have been able to accomplish pretty much everything that I have wanted to make in my game!
There is one thing that I have never understood, and even though I have been looking everywhere for answers whitout any luck, I have never bothered to ask before now becuase this prevents me suddenly from doing everything I want…
I am pretty sure it’s easy, but I just dont understand the way it works so if anyone deside to help, please teach me why it is working as it is, since it obviosly dont make sence to me…
When I script, and want to define varibles like “GameObject, Texture, Material, Texture2D” etc, they need to be static to be able to be used later on in the code! This, make sence, ofc!
BUT… To be able to assign anything to these varibles, in the “Inspector” so that I actualy know what “GameObject, or Material” I am going to use in the code, the varible needs to be non-static!
I need to use C#, and I dont want to manualy script the assignment!
Please, help me!
Marius Alexander Winsjansen