Class MixturePropertyDrawer
Inheritance
System.Object
UnityEditor.MaterialPropertyDrawer
MixturePropertyDrawer
Inherited Members
UnityEditor.MaterialPropertyDrawer.OnGUI(UnityEngine.Rect, UnityEditor.MaterialProperty, UnityEngine.GUIContent, UnityEditor.MaterialEditor)
UnityEditor.MaterialPropertyDrawer.Apply(UnityEditor.MaterialProperty)
Assembly: Unity.ShaderGraph.GraphicsTests.dll
Syntax
public class MixturePropertyDrawer : MaterialPropertyDrawer
Methods
|
Improve this Doc
View Source
DrawerGUI(Rect, MaterialProperty, String, MaterialEditor, MixtureGraph, MixtureNodeView)
Declaration
protected virtual void DrawerGUI(Rect position, MaterialProperty prop, string label, MaterialEditor editor, MixtureGraph graph, MixtureNodeView nodeView)
Parameters
Type |
Name |
Description |
UnityEngine.Rect |
position |
|
UnityEditor.MaterialProperty |
prop |
|
System.String |
label |
|
UnityEditor.MaterialEditor |
editor |
|
MixtureGraph |
graph |
|
MixtureNodeView |
nodeView |
|
|
Improve this Doc
View Source
GetGraph(MaterialEditor)
Declaration
protected MixtureGraph GetGraph(MaterialEditor editor)
Parameters
Type |
Name |
Description |
UnityEditor.MaterialEditor |
editor |
|
Returns
|
Improve this Doc
View Source
GetNodeView(MaterialEditor)
Declaration
protected MixtureNodeView GetNodeView(MaterialEditor editor)
Parameters
Type |
Name |
Description |
UnityEditor.MaterialEditor |
editor |
|
Returns
|
Improve this Doc
View Source
GetPropertyHeight(MaterialProperty, String, MaterialEditor)
Declaration
public override float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor)
Parameters
Type |
Name |
Description |
UnityEditor.MaterialProperty |
prop |
|
System.String |
label |
|
UnityEditor.MaterialEditor |
editor |
|
Returns
Type |
Description |
System.Single |
|
Overrides
UnityEditor.MaterialPropertyDrawer.GetPropertyHeight(UnityEditor.MaterialProperty, System.String, UnityEditor.MaterialEditor)
|
Improve this Doc
View Source
OnGUI(Rect, MaterialProperty, String, MaterialEditor)
Declaration
public override sealed void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor editor)
Parameters
Type |
Name |
Description |
UnityEngine.Rect |
position |
|
UnityEditor.MaterialProperty |
prop |
|
System.String |
label |
|
UnityEditor.MaterialEditor |
editor |
|
Overrides
UnityEditor.MaterialPropertyDrawer.OnGUI(UnityEngine.Rect, UnityEditor.MaterialProperty, System.String, UnityEditor.MaterialEditor)
|
Improve this Doc
View Source
RegisterEditor(MaterialEditor, MixtureNodeView, MixtureGraph)
Declaration
public static void RegisterEditor(MaterialEditor editor, MixtureNodeView nodeView, MixtureGraph graph)
Parameters
|
Improve this Doc
View Source
UnregisterGraph(MixtureGraph)
Declaration
public static void UnregisterGraph(MixtureGraph graph)
Parameters