Component:Texture3DAssetMetadata: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
Line 3: Line 3:
|Name=Texture 3D Asset Metadata
|Name=Texture 3D Asset Metadata
}}
}}
{{stub}}
The '''Texture3DAssetMetadata''' component is able to retrieve the 3D texture data like size, memory, and format usually seen at the bottom of an inspector on a particular component as usable values.


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Texture|{{RootFieldType|AssetRef`1|[[Type:Texture3D|Texture3D]]}}|TypeAdv0=true|
|Texture|{{RootFieldType|AssetRef`1|[[Type:Texture3D|Texture3D]]}}|TypeAdv0=true| The texture to get Asset Metadata for.
|Size|{{RootFieldType|RawOutput`1|[[Type:Int3|Int3]]}}|TypeAdv1=true|
|Size|{{RootFieldType|RawOutput`1|[[Type:Int3|Int3]]}}|TypeAdv1=true| The size of <code>Texture</code> in pixels.
|Width|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv2=true|
|Width|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv2=true| The width of <code>Texture</code> in pixels.
|Height|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv3=true|
|Height|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv3=true| The height of <code>Texture</code> in pixels.
|Depth|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv4=true|
|Depth|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv4=true| The depth or Z of <code>Texture</code> in pixels.
|MemoryBytes|{{RootFieldType|RawOutput`1|[[Type:Long|Long]]}}|TypeAdv5=true|
|MemoryBytes|{{RootFieldType|RawOutput`1|[[Type:Long|Long]]}}|TypeAdv5=true| How many bytes of memory <code>Texture</code> takes up.
|FormattedMemoryBytes|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv6=true|
|FormattedMemoryBytes|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv6=true| The bytes that <code>Texture</code> uses in easy to read human format.
|Format|{{RootFieldType|RawOutput`1|[[Type:TextureFormat|TextureFormat]]}}|TypeAdv7=true|
|Format|{{RootFieldType|RawOutput`1|[[Type:TextureFormat|TextureFormat]]}}|TypeAdv7=true| The format that <code>Texture</code> is kept in.
|ActualLoadedVariant|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv8=true|
|ActualLoadedVariant|{{RootFieldType|RawOutput`1|[[Type:String|String]]}}|TypeAdv8=true| The variant of <code>Texture</code> that has been loaded, which can be different on a client due to graphics settings or variants are being calculated on the cloud.
|Profile|{{RootFieldType|RawOutput`1|[[Type:ColorProfile|ColorProfile]]}}|TypeAdv9=true|
|Profile|{{RootFieldType|RawOutput`1|[[Type:ColorProfile|ColorProfile]]}}|TypeAdv9=true| The color space <code>Texture</code> is rendered in.
}}
}}


== Behavior ==
== Usage ==
Attach to a slot and provide a texture to <code>Texture</code> and the component will change it's Outputs to the data in that provided texture.


== Examples ==
== Examples ==
{{stub}}


== See Also ==
== See Also ==
* [[Component:Texture2DAssetMetadata]]


[[Category:Components:Assets:Utility{{#translation:}}|Texture 3D Asset Metadata]]
[[Category:Components:Assets:Utility{{#translation:}}|Texture 3D Asset Metadata]]
[[Category:Components{{#translation:}}|Texture 3D Asset Metadata]]
[[Category:Components{{#translation:}}|Texture 3D Asset Metadata]]
[[Category:ComponentStubs]]

Latest revision as of 18:06, 4 February 2025

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

The Texture3DAssetMetadata component is able to retrieve the 3D texture data like size, memory, and format usually seen at the bottom of an inspector on a particular component as usable values.

Usage

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 Texture3D The texture to get Asset Metadata for.
Size raw output of Int3 The size of Texture in pixels.
Width raw output of Int The width of Texture in pixels.
Height raw output of Int The height of Texture in pixels.
Depth raw output of Int The depth or Z of Texture in pixels.
MemoryBytes raw output of Long How many bytes of memory Texture takes up.
FormattedMemoryBytes raw output of String The bytes that Texture uses in easy to read human format.
Format raw output of TextureFormat The format that Texture is kept in.
ActualLoadedVariant raw output of String The variant of Texture that has been loaded, which can be different on a client due to graphics settings or variants are being calculated on the cloud.
Profile raw output of ColorProfile The color space Texture is rendered in.

Usage

Attach to a slot and provide a texture to Texture and the component will change it's Outputs to the data in that provided texture.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


See Also