Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MaterialDescription

Contains a set of typed properties for describing a texture input of a MaterialDescription.
Read time 1 minuteLast updated 12 days ago

Definition

public class MaterialDescription : IDisposable

Properties

Property

Description

materialNameThe name of the material

Methods

Method

Description

GetFloatPropertyNamesRetrieves the property names of type float for this material.
GetStringPropertyNamesRetrieves the property names of type string for this material.
GetTexturePropertyNamesRetrieves the property names of type TextureDescription for this material.
GetVector4PropertyNamesRetrieves the property names of type Vector4 for this material.
HasAnimationCurveChecks if a material property is animated in a any AnimationClip.
HasAnimationCurveInClipChecks if a material property is animated in a specific AnimationClip.
TryGetAnimationCurveRetrieves the AnimationCurve for an animated material property in a specific AnimationClip.
TryGetPropertyRetrieves the value of a specified material property.