MaterialGridData

Inherits from Asset

Summary

Constructors

MaterialGridData()
MaterialGridData(guid: Guid)
MaterialGridData(other: Asset)
MaterialGridData(other: DataContainer)

Properties

Name Type
defaultMaterial MaterialContainerPair | nil
materialPairs MaterialContainerPair[]
materialIndexMap int[]
defaultMaterialIndex int
materialProperties MaterialRelationPropertyPair[]
interactionGrid MaterialInteractionGridRow[]

Static members

Name Type
MaterialGridData.typeInfo TypeInformation

Constructors

MaterialGridData

MaterialGridData()

Creates a new MaterialGridData frostbite instance.

MaterialGridData

MaterialGridData(guid: Guid)

Creates a new MaterialGridData frostbite instance and assigns it the provided Guid.

Parameters

Name Type Description
guid Guid The Guid to assign to the newly created instance.

MaterialGridData

MaterialGridData(other: Asset)

Casts an instance of type Asset to MaterialGridData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other Asset The instance to cast to MaterialGridData.

MaterialGridData

MaterialGridData(other: DataContainer)

Casts an instance of type DataContainer to MaterialGridData. Will throw an error when trying to cast from an unsupported type.

Parameters

Name Type Description
other DataContainer The instance to cast to MaterialGridData.

Properties

defaultMaterial

MaterialContainerPair | nil

materialPairs

MaterialContainerPair[]

materialIndexMap

int[]

defaultMaterialIndex

int

materialProperties

MaterialRelationPropertyPair[]

interactionGrid

MaterialInteractionGridRow[]

Static members

typeInfo

TypeInformation

The type information for the MaterialGridData type.

Last modified April 26, 2020: Update frostbite type documentation (8b14351c)