How can I access the tint color property of the main skybox material through scripting? Trying RenderSettings.skybox, the material returned does not have a color property to edit.
Answer by Eric5h5
Jun 15, 2011 at 06:44 PM
That's because it uses _Tint instead of _Color (you can see this in the shader file); you can use SetColor("_Tint"... instead.
You're the man.
Is there a way to get it to create a temp version once you mod the material? Because whenever I change the settings it stays the same as last played..
@3dDude: you can instantiate a copy at runtime and use that instead.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
3 People are following this question.
creating skybox material problem
Dynamic Color Change Particle
Searching for space skybox HQ
My skybox became... Ugly?