Component image 
Texture 2D Asset Metadata component as seen in the Scene Inspector

The Texture2DAssetMetadata component converts the metadata often seen on texture components in an inspector into data that can be pulled into other systems as actual numbers and values.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
Texture
|
Texture2D | The texture to get metadata on. |
Size
|
raw output of Int2 | How big Texture is in pixels as a width height pair.
|
Width
|
raw output of Int | How wide Texture is in pixels.
|
Height
|
raw output of Int | How tall Texture is in pixels.
|
HasMipMaps
|
raw output of Bool | Whether Texture has mipmaps.
|
MipMapCount
|
raw output of Int | How many mipmap levels Texture has.
|
MemoryBytes
|
raw output of Long | How many bytes of memory Texture takes up.
|
FormattedMemoryBytes
|
raw output of String | The bytes of memory Texture takes up formatted into an easy to read format.
|
Format
|
raw output of TextureFormat | The format Texture is encoded in.
|
ActualLoadedVariant
|
raw output of String | The actual variant of Texture that is loaded on the client.
|
Profile
|
raw output of ColorProfile | The color profile Texture is being rendered in.
|
Usage
Attach to a slot and provide an asset to Texture
to start getting values and using the component.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.