Class SpriteMaterialEditor
Extensible material editor for sprite-like materials.
[PublicAPI]
[UsedImplicitly]
public class SpriteMaterialEditor : MsdfMaterialEditorBase
- Inheritance
-
ShaderGUISpriteMaterialEditor
- Inherited Members
-
ShaderGUI.OnMaterialPreviewGUI(MaterialEditor, Rect, GUIStyle)ShaderGUI.OnMaterialInteractivePreviewGUI(MaterialEditor, Rect, GUIStyle)ShaderGUI.OnMaterialPreviewSettingsGUI(MaterialEditor)ShaderGUI.OnClosed(Material)ShaderGUI.AssignNewShaderToMaterial(Material, Shader, Shader)ShaderGUI.ValidateMaterial(Material)
Fields
OutlineScope
protected static readonly GUIContent OutlineScope
Field Value
- GUIContent
ShadowScope
protected static readonly GUIContent ShadowScope
Field Value
- GUIContent
Methods
SetupScopes(IDictionary<string, MaterialProperty>)
Called during the GUI lifecycle, you can call AddToScope(GUIContent, ScopeDrawer) here to set up your GUI sections.
protected override void SetupScopes(IDictionary<string, MaterialProperty> unhandledProperties)
Parameters
unhandledProperties
IDictionary<string, MaterialProperty>Material properties that have not been handled by any drawer yet, indexed by name. Make sure to remove the ones you plan on drawing.