MDLMaterial.GetProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetProperty(String) |
Returns the property with the specifed name, if it exists. Otherwise, returns |
GetProperty(MDLMaterialSemantic) |
Returns the property value for the specifed semantic, if it exists. Otherwise, returns |
GetProperty(String)
Returns the property with the specifed name, if it exists. Otherwise, returns null
.
[Foundation.Export("propertyNamed:")]
public virtual ModelIO.MDLMaterialProperty GetProperty (string name);
abstract member GetProperty : string -> ModelIO.MDLMaterialProperty
override this.GetProperty : string -> ModelIO.MDLMaterialProperty
Parameters
- name
- String
Returns
- Attributes
Applies to
GetProperty(MDLMaterialSemantic)
Returns the property value for the specifed semantic, if it exists. Otherwise, returns null
.
[Foundation.Export("propertyWithSemantic:")]
public virtual ModelIO.MDLMaterialProperty GetProperty (ModelIO.MDLMaterialSemantic semantic);
abstract member GetProperty : ModelIO.MDLMaterialSemantic -> ModelIO.MDLMaterialProperty
override this.GetProperty : ModelIO.MDLMaterialSemantic -> ModelIO.MDLMaterialProperty
Parameters
- semantic
- MDLMaterialSemantic
Returns
- Attributes