Material |
public sealed class MaterialProperty : IMarshalable<MaterialProperty, AiMaterialProperty>
The MaterialProperty type exposes the following members.
| Name | Description | |
|---|---|---|
| MaterialProperty | Constructs a new instance of the MaterialProperty class. | |
| MaterialProperty(String, Boolean) | Constructs a new instance of the MaterialProperty class. Constructs a boolean property. | |
| MaterialProperty(String, Byte) | Constructs a new instance of the MaterialProperty class. Constructs a buffer property. | |
| MaterialProperty(String, Int32) | Constructs a new instance of the MaterialProperty class. Constructs an integer property. | |
| MaterialProperty(String, Int32) | Constructs a new instance of the MaterialProperty class. Creates a int array property. | |
| MaterialProperty(String, Vector3) | Constructs a new instance of the MaterialProperty class. Creates a Vector3 property. | |
| MaterialProperty(String, Vector4) | Constructs a new instance of the MaterialProperty class. Creates a Vector4 property. | |
| MaterialProperty(String, Single) | Constructs a new instance of the MaterialProperty class. Constructs a float property. | |
| MaterialProperty(String, Single) | Constructs a new instance of the MaterialProperty class. Creates a float array property. | |
| MaterialProperty(String, String) | Constructs a new instance of the MaterialProperty class. Creates a string property. | |
| MaterialProperty(String, String, TextureType, Int32) | Constructs a new instance of the MaterialProperty class. Creates a texture property. |
| Name | Description | |
|---|---|---|
| ByteCount | Gets the raw byte data count. | |
| FullyQualifiedName | Gets the property's fully qualified name. Format: "{base name},{texture type semantic},{texture index}". E.g. "$clr.diffuse,0,0". This is the key that is used to index the property in the material property map. | |
| HasRawData | Checks if the property has data. | |
| Name | Gets or sets the property key name. E.g. $tex.file. This corresponds to the "AiMatKeys" base name constants. | |
| PropertyType | Gets or sets the type of property. | |
| RawData | Gets the raw byte data. To modify/read this data, see the Get/SetXXXValue methods. | |
| TextureIndex | Gets or sets the texture index, for non-texture properties this is always zero. | |
| TextureType | Gets or sets the texture type semantic, for non-texture properties this is always None. |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| FreeNative | Frees unmanaged memory created by ToNative(IntPtr, Native). | |
| GetBooleanValue | Gets the property raw data as a boolean. | |
| GetDoubleArrayValue | Gets the property raw data as a double array. | |
| GetDoubleValue | Gets the property raw data as a double. | |
| GetFloatArrayValue | Gets the property raw data as a float array. | |
| GetFloatArrayValue(Int32) | Gets the property raw data as a float array. | |
| GetFloatValue | Gets the property raw data as a float. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetIntegerArrayValue | Gets the property raw data as an integer array. | |
| GetIntegerArrayValue(Int32) | Gets the property raw data as an integer array. | |
| GetIntegerValue | Gets the property raw data as an integer. | |
| GetStringValue | Gets the property raw data as a string. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| GetVector3Value | Gets the property raw data as a Vector3. | |
| GetVector4Value | Gets the property raw data as a Vector4. | |
| SetBooleanValue | Sets the property raw data as a boolean. | |
| SetDoubleArrayValue | Sets the property raw data as a double array. | |
| SetDoubleValue | Sets the property raw data with a double. | |
| SetFloatArrayValue | Sets the property raw data as a float array. | |
| SetFloatValue | Sets the property raw data with a float. | |
| SetIntegerArrayValue | Sets the property raw data as an integer array. | |
| SetIntegerValue | Sets the property raw data as an integer. | |
| SetStringValue | Sets the property raw data as string. | |
| SetVector3Value | Sets the property raw data as a Vector3. | |
| SetVector4Value | Sets the property raw data as a Vector4. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |