Click or drag to resize

MaterialProperty Class

A key-value pairing that represents some material property.
Inheritance Hierarchy
SystemObject
  Internal.AssimpMaterialProperty

Namespace: Internal.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public sealed class MaterialProperty : IMarshalable<MaterialProperty, AiMaterialProperty>

The MaterialProperty type exposes the following members.

Constructors
 NameDescription
Public methodMaterialProperty Constructs a new instance of the MaterialProperty class.
Public methodMaterialProperty(String, Boolean) Constructs a new instance of the MaterialProperty class. Constructs a boolean property.
Public methodMaterialProperty(String, Byte) Constructs a new instance of the MaterialProperty class. Constructs a buffer property.
Public methodMaterialProperty(String, Int32) Constructs a new instance of the MaterialProperty class. Constructs an integer property.
Public methodMaterialProperty(String, Int32) Constructs a new instance of the MaterialProperty class. Creates a int array property.
Public methodMaterialProperty(String, Vector3) Constructs a new instance of the MaterialProperty class. Creates a Vector3 property.
Public methodMaterialProperty(String, Vector4) Constructs a new instance of the MaterialProperty class. Creates a Vector4 property.
Public methodMaterialProperty(String, Single) Constructs a new instance of the MaterialProperty class. Constructs a float property.
Public methodMaterialProperty(String, Single) Constructs a new instance of the MaterialProperty class. Creates a float array property.
Public methodMaterialProperty(String, String) Constructs a new instance of the MaterialProperty class. Creates a string property.
Public methodMaterialProperty(String, String, TextureType, Int32) Constructs a new instance of the MaterialProperty class. Creates a texture property.
Top
Properties
 NameDescription
Public propertyByteCount Gets the raw byte data count.
Public propertyFullyQualifiedName 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.
Public propertyHasRawData Checks if the property has data.
Public propertyName Gets or sets the property key name. E.g. $tex.file. This corresponds to the "AiMatKeys" base name constants.
Public propertyPropertyType Gets or sets the type of property.
Public propertyRawData Gets the raw byte data. To modify/read this data, see the Get/SetXXXValue methods.
Public propertyTextureIndex Gets or sets the texture index, for non-texture properties this is always zero.
Public propertyTextureType Gets or sets the texture type semantic, for non-texture properties this is always None.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberFreeNative Frees unmanaged memory created by ToNative(IntPtr, Native).
Public methodGetBooleanValue Gets the property raw data as a boolean.
Public methodGetDoubleArrayValue Gets the property raw data as a double array.
Public methodGetDoubleValue Gets the property raw data as a double.
Public methodGetFloatArrayValue Gets the property raw data as a float array.
Public methodGetFloatArrayValue(Int32) Gets the property raw data as a float array.
Public methodGetFloatValue Gets the property raw data as a float.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetIntegerArrayValue Gets the property raw data as an integer array.
Public methodGetIntegerArrayValue(Int32) Gets the property raw data as an integer array.
Public methodGetIntegerValue Gets the property raw data as an integer.
Public methodGetStringValue Gets the property raw data as a string.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetVector3Value Gets the property raw data as a Vector3.
Public methodGetVector4Value Gets the property raw data as a Vector4.
Public methodSetBooleanValue Sets the property raw data as a boolean.
Public methodSetDoubleArrayValue Sets the property raw data as a double array.
Public methodSetDoubleValue Sets the property raw data with a double.
Public methodSetFloatArrayValue Sets the property raw data as a float array.
Public methodSetFloatValue Sets the property raw data with a float.
Public methodSetIntegerArrayValue Sets the property raw data as an integer array.
Public methodSetIntegerValue Sets the property raw data as an integer.
Public methodSetStringValue Sets the property raw data as string.
Public methodSetVector3Value Sets the property raw data as a Vector3.
Public methodSetVector4Value Sets the property raw data as a Vector4.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also