Class MaterialPropertyAttribute
Namespace: Unity.Rendering
Syntax
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = true)]
public class MaterialPropertyAttribute : Attribute, _Attribute
Constructors
MaterialPropertyAttribute(String, MaterialPropertyFormat)
Declaration
public MaterialPropertyAttribute(string materialPropertyName, MaterialPropertyFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| String | materialPropertyName | |
| MaterialPropertyFormat | format |
Properties
Format
Declaration
public MaterialPropertyFormat Format { get; }
Property Value
| Type | Description |
|---|---|
| MaterialPropertyFormat |
Name
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| String |