- Home /
Unity accessing Gradient Editor changing Preset
Hello again.
I have another question connected to Unity Gradient Editor, and the question is : Question : Can I change the preset by script in Unity? By Preset I mean , the gradient I have previously created in Gradient Editor
is there like a gameobject.getComponent().color.preset(1) method? to access that?
And If you dont know I am talking about here there is Gradient Editor and the Preset just below :
Answer by Tourist · Nov 10, 2017 at 10:42 AM
Presets are only available in the editor to have already created gradients to create a new one.
If you need, in your game, to change the color gradient, your component must have more Gradient fields and switch between them.
Your answer
Follow this Question
Related Questions
UI working fine in editor but glitched in standalone builds 1 Answer
Unity editor bugging out 4 Answers
How to have a gradient editor in an editor script? 5 Answers
OnServerStart not being called in standalone build. Works in editor. 1 Answer
How do i make a button appear when my FPSController walks through a tigger collider? 4 Answers