Home
Manual
Reference
Scripting
Scripting Reference
MaterialEditor
.ShaderProperty
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Attributes
Enumerations
History
Index
MaterialEditor
All Members
Variables
isVisible
Functions
Awake
ColorProperty
FloatProperty
GetColor
GetFloat
GetTexture
GetTextureOffset
GetTextureScale
GetVector
OnDisable
OnEnable
PropertiesChanged
PropertiesGUI
RangeProperty
RegisterPropertyChangeUndo
SetColor
SetFloat
SetShader
SetTexture
SetTextureOffset
SetTextureScale
SetVector
ShaderProperty
TextureProperty
UndoRedoPerformed
VectorProperty
Inherited Variables
hideFlags
name
serializedObject
target
targets
Inherited Functions
DrawDefaultInspector
GetInfoString
GetInstanceID
GetPreviewTitle
HasPreviewGUI
OnInspectorGUI
OnInteractivePreviewGUI
OnPreviewGUI
OnPreviewSettings
RenderStaticPreview
Repaint
ToString
Inherited Class Functions
CreateEditor
CreateInstance
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
Instantiate
operator !=
operator ==
operator bool
function
ShaderProperty (shader :
Shader
, propertyIndex :
int
) :
void
Parameters
Name
Description
shader
Shader that the material uses.
propertyIndex
Index of the property to draw.
Description
Automatically draw a shader property from given index for the given shader.