C# 클래스 UnityEditor.MaterialEditor

상속: Editor
파일 보기 프로젝트 열기: randomize/VimConfig 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CheckSetup void
ColorProperty Color
CreateCustomShaderGUI void
DetectShaderChanged void
DoPowerRangeProperty float
DoRenderPreview void
DoesPreviewAllowRotation bool
ExtraPropertyAfterTexture void
FloatProperty float
GetAssociatedRenderFromInspector UnityEngine.Renderer
GetColor Color
GetControlRectForSingleLine UnityEngine.Rect
GetFloat float
GetGlobalIlluminationInt int
GetPreviewType PreviewType
GetPropertyRect UnityEngine.Rect
GetTexture UnityEngine.Texture
GetTextureFieldHeight float
GetTextureOffset Vector2
GetTextureScale Vector2
GetVector Vector4
HandleRenderer void
HandleSkybox void
HasMultipleMixedShaderValues bool
Init void
IsMaterialEditor bool
OnAssetStoreInspectorGUI void
OnHeaderControlsGUI void
OnSceneDrag void
OnSelectedShaderPopup void
PreviewSettingsMenuButton bool
RangeProperty float
SetColor void
SetFloat void
SetTexture void
SetTextureOffset void
SetTextureScale void
SetVector void
ShaderPopup void
ShaderProperty void
ShaderPropertyInternal void
TextureProperty UnityEngine.Texture
TextureProperty UnityEngine.Texture
TexturePropertyBody UnityEngine.Texture
TextureScaleOffsetProperty Vector4
TextureValidator UnityEngine.Object
VectorProperty Vector4

공개 메소드들

메소드 설명
ApplyMaterialPropertyDrawers ( Material material ) : void
ApplyMaterialPropertyDrawers ( UnityEngine targets ) : void
Awake ( ) : void
BeginAnimatedCheck ( MaterialProperty prop ) : void
ColorProperty ( MaterialProperty prop, string label ) : Color
ColorProperty ( Rect position, MaterialProperty prop, string label ) : Color
DefaultPreviewGUI ( Rect r, GUIStyle background ) : void
DefaultPreviewSettingsGUI ( ) : void
DefaultShaderProperty ( MaterialProperty prop, string label ) : void
DefaultShaderProperty ( Rect position, MaterialProperty prop, string label ) : void
EndAnimatedCheck ( ) : void
FloatProperty ( MaterialProperty prop, string label ) : float
FloatProperty ( Rect position, MaterialProperty prop, string label ) : float
GetDefaultPropertyHeight ( MaterialProperty prop ) : float
GetFlexibleRectBetweenFieldAndRightEdge ( Rect r ) : Rect
GetFlexibleRectBetweenLabelAndField ( Rect r ) : Rect
GetLeftAlignedFieldRect ( Rect r ) : Rect
GetMaterialProperties ( UnityEngine mats ) : UnityEditor.MaterialProperty[]
GetMaterialProperty ( UnityEngine mats, int propertyIndex ) : MaterialProperty
GetMaterialProperty ( UnityEngine mats, string name ) : MaterialProperty
GetPropertyHeight ( MaterialProperty prop ) : float
GetPropertyHeight ( MaterialProperty prop, string label ) : float
GetRectAfterLabelWidth ( Rect r ) : Rect
GetRightAlignedFieldRect ( Rect r ) : Rect
GetTexturePropertyCustomArea ( Rect position ) : Rect
HasPreviewGUI ( ) : bool
HelpBoxWithButton ( GUIContent messageContent, GUIContent buttonContent ) : bool
LightmapEmissionProperty ( ) : void
LightmapEmissionProperty ( Rect position, int labelIndent ) : void
LightmapEmissionProperty ( int labelIndent ) : void
OnDisable ( ) : void
OnEnable ( ) : void
OnInspectorGUI ( ) : void
OnInteractivePreviewGUI ( Rect r, GUIStyle background ) : void
OnPreviewGUI ( Rect r, GUIStyle background ) : void
OnPreviewSettings ( ) : void
PrepareMaterialPropertiesForAnimationMode ( MaterialProperty properties, bool isMaterialEditable ) : Renderer
PropertiesChanged ( ) : void
PropertiesDefaultGUI ( MaterialProperty props ) : void
PropertiesGUI ( ) : bool
RangeProperty ( MaterialProperty prop, string label ) : float
RangeProperty ( Rect position, MaterialProperty prop, string label ) : float
RegisterPropertyChangeUndo ( string label ) : void
RenderStaticPreview ( string assetPath, UnityEngine subAssets, int width, int height ) : Texture2D
RequiresConstantRepaint ( ) : bool
SetDefaultGUIWidths ( ) : void
SetShader ( Shader shader ) : void
SetShader ( Shader newShader, bool registerUndo ) : void
ShaderProperty ( MaterialProperty prop, string label ) : void
ShaderProperty ( MaterialProperty prop, string label, int labelIndent ) : void
ShaderProperty ( Rect position, MaterialProperty prop, string label ) : void
ShaderProperty ( Rect position, MaterialProperty prop, string label, int labelIndent ) : void
TextureCompatibilityWarning ( MaterialProperty prop ) : void
TextureProperty ( MaterialProperty prop, string label ) : Texture
TextureProperty ( MaterialProperty prop, string label, bool scaleOffset ) : Texture
TextureProperty ( Rect position, MaterialProperty prop, string label ) : Texture
TextureProperty ( Rect position, MaterialProperty prop, string label, bool scaleOffset ) : Texture
TextureProperty ( Rect position, MaterialProperty prop, string label, string tooltip, bool scaleOffset ) : Texture
TexturePropertyMiniThumbnail ( Rect position, MaterialProperty prop, string label, string tooltip ) : Texture
TexturePropertySingleLine ( GUIContent label, MaterialProperty textureProp ) : Rect
TexturePropertySingleLine ( GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1 ) : Rect
TexturePropertySingleLine ( GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, MaterialProperty extraProperty2 ) : Rect
TexturePropertyTwoLines ( GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, GUIContent label2, MaterialProperty extraProperty2 ) : Rect
TexturePropertyWithHDRColor ( GUIContent label, MaterialProperty textureProp, MaterialProperty colorProperty, ColorPickerHDRConfig hdrConfig, bool showAlpha ) : Rect
TextureScaleOffsetProperty ( Rect position, Vector4 scaleOffset ) : Vector4
TextureScaleOffsetProperty ( Rect position, Vector4 scaleOffset, bool partOfTexturePropertyControl ) : Vector4
TextureScaleOffsetProperty ( Rect position, MaterialProperty property ) : float
TextureScaleOffsetProperty ( Rect position, MaterialProperty property, bool partOfTexturePropertyControl ) : float
TextureScaleOffsetProperty ( MaterialProperty property ) : void
UndoRedoPerformed ( ) : void
VectorProperty ( MaterialProperty prop, string label ) : Vector4
VectorProperty ( Rect position, MaterialProperty prop, string label ) : Vector4

보호된 메소드들

메소드 설명
OnHeaderGUI ( ) : void

비공개 메소드들

메소드 설명
CheckSetup ( ) : void
ColorProperty ( string propertyName, string label ) : Color
CreateCustomShaderGUI ( Shader shader, string oldEditorName ) : void
DetectShaderChanged ( ) : void
DoPowerRangeProperty ( Rect position, MaterialProperty prop, string label, float power ) : float
DoRenderPreview ( ) : void
DoesPreviewAllowRotation ( PreviewType type ) : bool
ExtraPropertyAfterTexture ( Rect r, MaterialProperty property ) : void
FloatProperty ( string propertyName, string label ) : float
GetAssociatedRenderFromInspector ( ) : Renderer
GetColor ( string propertyName, bool &hasMixedValue ) : Color
GetControlRectForSingleLine ( ) : Rect
GetFloat ( string propertyName, bool &hasMixedValue ) : float
GetGlobalIlluminationInt ( MaterialGlobalIlluminationFlags flags ) : int
GetPreviewType ( Material mat ) : PreviewType
GetPropertyRect ( MaterialProperty prop, string label, bool ignoreDrawer ) : Rect
GetTexture ( string propertyName, bool &hasMixedValue ) : Texture
GetTextureFieldHeight ( ) : float
GetTextureOffset ( string propertyName, bool &hasMixedValueX, bool &hasMixedValueY ) : Vector2
GetTextureScale ( string propertyName, bool &hasMixedValueX, bool &hasMixedValueY ) : Vector2
GetVector ( string propertyName, bool &hasMixedValue ) : Vector4
HandleRenderer ( Renderer r, int materialIndex, Event evt ) : void
HandleSkybox ( GameObject go, Event evt ) : void
HasMultipleMixedShaderValues ( ) : bool
Init ( ) : void
IsMaterialEditor ( string customEditorName ) : bool
OnAssetStoreInspectorGUI ( ) : void
OnHeaderControlsGUI ( ) : void
OnSceneDrag ( SceneView sceneView ) : void
OnSelectedShaderPopup ( string command, Shader shader ) : void
PreviewSettingsMenuButton ( Rect &buttonRect ) : bool
RangeProperty ( string propertyName, string label, float v2, float v3 ) : float
SetColor ( string propertyName, Color value ) : void
SetFloat ( string propertyName, float value ) : void
SetTexture ( string propertyName, Texture value ) : void
SetTextureOffset ( string propertyName, Vector2 value, int coord ) : void
SetTextureScale ( string propertyName, Vector2 value, int coord ) : void
SetVector ( string propertyName, Vector4 value ) : void
ShaderPopup ( GUIStyle style ) : void
ShaderProperty ( Shader shader, int propertyIndex ) : void
ShaderPropertyInternal ( Rect position, MaterialProperty prop, string label ) : void
TextureProperty ( string propertyName, string label, ShaderUtil texDim ) : Texture
TextureProperty ( string propertyName, string label, ShaderUtil texDim, bool scaleOffset ) : Texture
TexturePropertyBody ( Rect position, MaterialProperty prop ) : Texture
TextureScaleOffsetProperty ( Rect position, Vector4 scaleOffset, int mixedValueMask, bool partOfTexturePropertyControl ) : Vector4
TextureValidator ( UnityEngine references, System objType, UnityEditor.SerializedProperty property ) : Object
VectorProperty ( string propertyName, string label ) : Vector4

메소드 상세

ApplyMaterialPropertyDrawers() 공개 정적인 메소드

public static ApplyMaterialPropertyDrawers ( Material material ) : void
material UnityEngine.Material
리턴 void

ApplyMaterialPropertyDrawers() 공개 정적인 메소드

public static ApplyMaterialPropertyDrawers ( UnityEngine targets ) : void
targets UnityEngine
리턴 void

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

BeginAnimatedCheck() 공개 메소드

public BeginAnimatedCheck ( MaterialProperty prop ) : void
prop MaterialProperty
리턴 void

ColorProperty() 공개 메소드

public ColorProperty ( MaterialProperty prop, string label ) : Color
prop MaterialProperty
label string
리턴 Color

ColorProperty() 공개 메소드

public ColorProperty ( Rect position, MaterialProperty prop, string label ) : Color
position UnityEngine.Rect
prop MaterialProperty
label string
리턴 Color

DefaultPreviewGUI() 공개 메소드

public DefaultPreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect
background UnityEngine.GUIStyle
리턴 void

DefaultPreviewSettingsGUI() 공개 메소드

public DefaultPreviewSettingsGUI ( ) : void
리턴 void

DefaultShaderProperty() 공개 메소드

public DefaultShaderProperty ( MaterialProperty prop, string label ) : void
prop MaterialProperty
label string
리턴 void

DefaultShaderProperty() 공개 메소드

public DefaultShaderProperty ( Rect position, MaterialProperty prop, string label ) : void
position UnityEngine.Rect
prop MaterialProperty
label string
리턴 void

EndAnimatedCheck() 공개 메소드

public EndAnimatedCheck ( ) : void
리턴 void

FloatProperty() 공개 메소드

public FloatProperty ( MaterialProperty prop, string label ) : float
prop MaterialProperty
label string
리턴 float

FloatProperty() 공개 메소드

public FloatProperty ( Rect position, MaterialProperty prop, string label ) : float
position UnityEngine.Rect
prop MaterialProperty
label string
리턴 float

GetDefaultPropertyHeight() 공개 정적인 메소드

public static GetDefaultPropertyHeight ( MaterialProperty prop ) : float
prop MaterialProperty
리턴 float

GetFlexibleRectBetweenFieldAndRightEdge() 공개 정적인 메소드

public static GetFlexibleRectBetweenFieldAndRightEdge ( Rect r ) : Rect
r UnityEngine.Rect
리턴 UnityEngine.Rect

GetFlexibleRectBetweenLabelAndField() 공개 정적인 메소드

public static GetFlexibleRectBetweenLabelAndField ( Rect r ) : Rect
r UnityEngine.Rect
리턴 UnityEngine.Rect

GetLeftAlignedFieldRect() 공개 정적인 메소드

public static GetLeftAlignedFieldRect ( Rect r ) : Rect
r UnityEngine.Rect
리턴 UnityEngine.Rect

GetMaterialProperties() 공개 정적인 메소드

public static GetMaterialProperties ( UnityEngine mats ) : UnityEditor.MaterialProperty[]
mats UnityEngine
리턴 UnityEditor.MaterialProperty[]

GetMaterialProperty() 공개 정적인 메소드

public static GetMaterialProperty ( UnityEngine mats, int propertyIndex ) : MaterialProperty
mats UnityEngine
propertyIndex int
리턴 MaterialProperty

GetMaterialProperty() 공개 정적인 메소드

public static GetMaterialProperty ( UnityEngine mats, string name ) : MaterialProperty
mats UnityEngine
name string
리턴 MaterialProperty

GetPropertyHeight() 공개 메소드

public GetPropertyHeight ( MaterialProperty prop ) : float
prop MaterialProperty
리턴 float

GetPropertyHeight() 공개 메소드

public GetPropertyHeight ( MaterialProperty prop, string label ) : float
prop MaterialProperty
label string
리턴 float

GetRectAfterLabelWidth() 공개 정적인 메소드

public static GetRectAfterLabelWidth ( Rect r ) : Rect
r UnityEngine.Rect
리턴 UnityEngine.Rect

GetRightAlignedFieldRect() 공개 정적인 메소드

public static GetRightAlignedFieldRect ( Rect r ) : Rect
r UnityEngine.Rect
리턴 UnityEngine.Rect

GetTexturePropertyCustomArea() 공개 메소드

public GetTexturePropertyCustomArea ( Rect position ) : Rect
position UnityEngine.Rect
리턴 UnityEngine.Rect

HasPreviewGUI() 공개 최종 메소드

public final HasPreviewGUI ( ) : bool
리턴 bool

HelpBoxWithButton() 공개 메소드

public HelpBoxWithButton ( GUIContent messageContent, GUIContent buttonContent ) : bool
messageContent UnityEngine.GUIContent
buttonContent UnityEngine.GUIContent
리턴 bool

LightmapEmissionProperty() 공개 메소드

public LightmapEmissionProperty ( ) : void
리턴 void

LightmapEmissionProperty() 공개 메소드

public LightmapEmissionProperty ( Rect position, int labelIndent ) : void
position UnityEngine.Rect
labelIndent int
리턴 void

LightmapEmissionProperty() 공개 메소드

public LightmapEmissionProperty ( int labelIndent ) : void
labelIndent int
리턴 void

OnDisable() 공개 메소드

public OnDisable ( ) : void
리턴 void

OnEnable() 공개 메소드

public OnEnable ( ) : void
리턴 void

OnHeaderGUI() 보호된 메소드

protected OnHeaderGUI ( ) : void
리턴 void

OnInspectorGUI() 공개 메소드

public OnInspectorGUI ( ) : void
리턴 void

OnInteractivePreviewGUI() 공개 메소드

public OnInteractivePreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect
background UnityEngine.GUIStyle
리턴 void

OnPreviewGUI() 공개 메소드

public OnPreviewGUI ( Rect r, GUIStyle background ) : void
r UnityEngine.Rect
background UnityEngine.GUIStyle
리턴 void

OnPreviewSettings() 공개 메소드

public OnPreviewSettings ( ) : void
리턴 void

PrepareMaterialPropertiesForAnimationMode() 공개 정적인 메소드

public static PrepareMaterialPropertiesForAnimationMode ( MaterialProperty properties, bool isMaterialEditable ) : Renderer
properties MaterialProperty
isMaterialEditable bool
리턴 UnityEngine.Renderer

PropertiesChanged() 공개 메소드

public PropertiesChanged ( ) : void
리턴 void

PropertiesDefaultGUI() 공개 메소드

public PropertiesDefaultGUI ( MaterialProperty props ) : void
props MaterialProperty
리턴 void

PropertiesGUI() 공개 메소드

public PropertiesGUI ( ) : bool
리턴 bool

RangeProperty() 공개 메소드

public RangeProperty ( MaterialProperty prop, string label ) : float
prop MaterialProperty
label string
리턴 float

RangeProperty() 공개 메소드

public RangeProperty ( Rect position, MaterialProperty prop, string label ) : float
position UnityEngine.Rect
prop MaterialProperty
label string
리턴 float

RegisterPropertyChangeUndo() 공개 메소드

public RegisterPropertyChangeUndo ( string label ) : void
label string
리턴 void

RenderStaticPreview() 공개 최종 메소드

public final RenderStaticPreview ( string assetPath, UnityEngine subAssets, int width, int height ) : Texture2D
assetPath string
subAssets UnityEngine
width int
height int
리턴 UnityEngine.Texture2D

RequiresConstantRepaint() 공개 메소드

public RequiresConstantRepaint ( ) : bool
리턴 bool

SetDefaultGUIWidths() 공개 메소드

public SetDefaultGUIWidths ( ) : void
리턴 void

SetShader() 공개 메소드

public SetShader ( Shader shader ) : void
shader UnityEngine.Shader
리턴 void

SetShader() 공개 메소드

public SetShader ( Shader newShader, bool registerUndo ) : void
newShader UnityEngine.Shader
registerUndo bool
리턴 void

ShaderProperty() 공개 메소드

public ShaderProperty ( MaterialProperty prop, string label ) : void
prop MaterialProperty
label string
리턴 void

ShaderProperty() 공개 메소드

public ShaderProperty ( MaterialProperty prop, string label, int labelIndent ) : void
prop MaterialProperty
label string
labelIndent int
리턴 void

ShaderProperty() 공개 메소드

public ShaderProperty ( Rect position, MaterialProperty prop, string label ) : void
position UnityEngine.Rect
prop MaterialProperty
label string
리턴 void

ShaderProperty() 공개 메소드

public ShaderProperty ( Rect position, MaterialProperty prop, string label, int labelIndent ) : void
position UnityEngine.Rect
prop MaterialProperty
label string
labelIndent int
리턴 void

TextureCompatibilityWarning() 공개 메소드

public TextureCompatibilityWarning ( MaterialProperty prop ) : void
prop MaterialProperty
리턴 void

TextureProperty() 공개 메소드

public TextureProperty ( MaterialProperty prop, string label ) : Texture
prop MaterialProperty
label string
리턴 UnityEngine.Texture

TextureProperty() 공개 메소드

public TextureProperty ( MaterialProperty prop, string label, bool scaleOffset ) : Texture
prop MaterialProperty
label string
scaleOffset bool
리턴 UnityEngine.Texture

TextureProperty() 공개 메소드

public TextureProperty ( Rect position, MaterialProperty prop, string label ) : Texture
position UnityEngine.Rect
prop MaterialProperty
label string
리턴 UnityEngine.Texture

TextureProperty() 공개 메소드

public TextureProperty ( Rect position, MaterialProperty prop, string label, bool scaleOffset ) : Texture
position UnityEngine.Rect
prop MaterialProperty
label string
scaleOffset bool
리턴 UnityEngine.Texture

TextureProperty() 공개 메소드

public TextureProperty ( Rect position, MaterialProperty prop, string label, string tooltip, bool scaleOffset ) : Texture
position UnityEngine.Rect
prop MaterialProperty
label string
tooltip string
scaleOffset bool
리턴 UnityEngine.Texture

TexturePropertyMiniThumbnail() 공개 메소드

public TexturePropertyMiniThumbnail ( Rect position, MaterialProperty prop, string label, string tooltip ) : Texture
position UnityEngine.Rect
prop MaterialProperty
label string
tooltip string
리턴 UnityEngine.Texture

TexturePropertySingleLine() 공개 메소드

public TexturePropertySingleLine ( GUIContent label, MaterialProperty textureProp ) : Rect
label UnityEngine.GUIContent
textureProp MaterialProperty
리턴 UnityEngine.Rect

TexturePropertySingleLine() 공개 메소드

public TexturePropertySingleLine ( GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1 ) : Rect
label UnityEngine.GUIContent
textureProp MaterialProperty
extraProperty1 MaterialProperty
리턴 UnityEngine.Rect

TexturePropertySingleLine() 공개 메소드

public TexturePropertySingleLine ( GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, MaterialProperty extraProperty2 ) : Rect
label UnityEngine.GUIContent
textureProp MaterialProperty
extraProperty1 MaterialProperty
extraProperty2 MaterialProperty
리턴 UnityEngine.Rect

TexturePropertyTwoLines() 공개 메소드

public TexturePropertyTwoLines ( GUIContent label, MaterialProperty textureProp, MaterialProperty extraProperty1, GUIContent label2, MaterialProperty extraProperty2 ) : Rect
label UnityEngine.GUIContent
textureProp MaterialProperty
extraProperty1 MaterialProperty
label2 UnityEngine.GUIContent
extraProperty2 MaterialProperty
리턴 UnityEngine.Rect

TexturePropertyWithHDRColor() 공개 메소드

public TexturePropertyWithHDRColor ( GUIContent label, MaterialProperty textureProp, MaterialProperty colorProperty, ColorPickerHDRConfig hdrConfig, bool showAlpha ) : Rect
label UnityEngine.GUIContent
textureProp MaterialProperty
colorProperty MaterialProperty
hdrConfig ColorPickerHDRConfig
showAlpha bool
리턴 UnityEngine.Rect

TextureScaleOffsetProperty() 공개 정적인 메소드

public static TextureScaleOffsetProperty ( Rect position, Vector4 scaleOffset ) : Vector4
position UnityEngine.Rect
scaleOffset Vector4
리턴 Vector4

TextureScaleOffsetProperty() 공개 정적인 메소드

public static TextureScaleOffsetProperty ( Rect position, Vector4 scaleOffset, bool partOfTexturePropertyControl ) : Vector4
position UnityEngine.Rect
scaleOffset Vector4
partOfTexturePropertyControl bool
리턴 Vector4

TextureScaleOffsetProperty() 공개 메소드

public TextureScaleOffsetProperty ( Rect position, MaterialProperty property ) : float
position UnityEngine.Rect
property MaterialProperty
리턴 float

TextureScaleOffsetProperty() 공개 메소드

public TextureScaleOffsetProperty ( Rect position, MaterialProperty property, bool partOfTexturePropertyControl ) : float
position UnityEngine.Rect
property MaterialProperty
partOfTexturePropertyControl bool
리턴 float

TextureScaleOffsetProperty() 공개 메소드

public TextureScaleOffsetProperty ( MaterialProperty property ) : void
property MaterialProperty
리턴 void

UndoRedoPerformed() 공개 메소드

public UndoRedoPerformed ( ) : void
리턴 void

VectorProperty() 공개 메소드

public VectorProperty ( MaterialProperty prop, string label ) : Vector4
prop MaterialProperty
label string
리턴 Vector4

VectorProperty() 공개 메소드

public VectorProperty ( Rect position, MaterialProperty prop, string label ) : Vector4
position UnityEngine.Rect
prop MaterialProperty
label string
리턴 Vector4