Show / Hide Table of Contents

Class MaterialProperty

Inheritance
Object
MaterialProperty
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor
Assembly: UnityEditor.dll
Syntax
public sealed class MaterialProperty

Properties

| Improve this Doc View Source

applyPropertyCallback

Declaration
public MaterialProperty.ApplyPropertyCallback applyPropertyCallback { get; set; }
Property Value
Type Description
MaterialProperty.ApplyPropertyCallback
| Improve this Doc View Source

colorValue

Declaration
public Color colorValue { get; set; }
Property Value
Type Description
Color
| Improve this Doc View Source

displayName

Declaration
public string displayName { get; }
Property Value
Type Description
String
| Improve this Doc View Source

flags

Declaration
public MaterialProperty.PropFlags flags { get; }
Property Value
Type Description
MaterialProperty.PropFlags
| Improve this Doc View Source

floatValue

Declaration
public float floatValue { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

hasMixedValue

Declaration
public bool hasMixedValue { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

name

Declaration
public string name { get; }
Property Value
Type Description
String
| Improve this Doc View Source

rangeLimits

Declaration
public Vector2 rangeLimits { get; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

targets

Declaration
public Object[] targets { get; }
Property Value
Type Description
Object[]
| Improve this Doc View Source

textureDimension

Declaration
public TextureDimension textureDimension { get; }
Property Value
Type Description
TextureDimension
| Improve this Doc View Source

textureScaleAndOffset

Declaration
public Vector4 textureScaleAndOffset { get; set; }
Property Value
Type Description
Vector4
| Improve this Doc View Source

textureValue

Declaration
public Texture textureValue { get; set; }
Property Value
Type Description
Texture
| Improve this Doc View Source

type

Declaration
public MaterialProperty.PropType type { get; }
Property Value
Type Description
MaterialProperty.PropType
| Improve this Doc View Source

vectorValue

Declaration
public Vector4 vectorValue { get; set; }
Property Value
Type Description
Vector4

Methods

| Improve this Doc View Source

ReadFromMaterialPropertyBlock(MaterialPropertyBlock)

Declaration
public void ReadFromMaterialPropertyBlock(MaterialPropertyBlock block)
Parameters
Type Name Description
MaterialPropertyBlock block
| Improve this Doc View Source

WriteToMaterialPropertyBlock(MaterialPropertyBlock, Int32)

Declaration
public void WriteToMaterialPropertyBlock(MaterialPropertyBlock materialblock, int changedPropertyMask)
Parameters
Type Name Description
MaterialPropertyBlock materialblock
Int32 changedPropertyMask

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX