API reference
API reference
Select your platform
No SDKs available
No versions available

SceneMaterialDataType

SceneMaterialDataType

enum SceneMaterialDataType : Enum<SceneMaterialDataType>
Defines the data types that can be used as attributes in custom shaders.
These types correspond to the attribute types supported by the underlying rendering system and are used when creating custom materials.

Entries

NameSummary
Vector4

Represents a 4-component vector (x, y, z, w) that can be used for colors, positions, or any other vector data in shaders
Texture2D

Represents a 2D texture backed by a SceneTexture that can be sampled in shaders

Properties

NameSummary
id
var id: Int

The internal ID used to identify this data type in the native code
name
val name: String
ordinal
val ordinal: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): SceneMaterialDataType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values
fun values(): Array<SceneMaterialDataType>

Returns an array containing the constants of this enum type, in the order they’re declared.
Did you find this page helpful?