Component:Texture2DAssetMetadata

From Resonite Wiki
Revision as of 18:39, 3 February 2025 by 989onan (talk | contribs) (add info)
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

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 the texture is in pixels as a width height pair.
Width raw output of Int How wide the texture is in pixels.
Height raw output of Int How tall the texture is in pixels.
HasMipMaps raw output of Bool Whether the texture has mipmaps.
MipMapCount raw output of Int How many mipmap levels the texture has.
MemoryBytes raw output of Long How many bytes of memory this texture takes up.
FormattedMemoryBytes raw output of String The bytes of memory formatted into an easy to read format.
Format raw output of TextureFormat The format this texture has.
ActualLoadedVariant raw output of String The actual variant of this texture that is loaded on the client.
Profile raw output of ColorProfile The color profile this texture is being rendered and is encoded 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.


See Also