ScriptReference/MaterialPropertyDrawer #312
Replies: 2 comments
-
|
You can add custom parameters to your custom drawer by adding a matching constructor. public class RangeMinMaxDrawer : MaterialPropertyDrawer
{
float Min,Max;
public RangeMinMaxDrawer(float Min, float Max)
{
this.Min = Min;
this.Max = Max;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
One option not listed here, but built-in, is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/MaterialPropertyDrawer
https://docs.unity3d.com/ScriptReference/MaterialPropertyDrawer.html
Beta Was this translation helpful? Give feedback.
All reactions