Component:MeshAssetMetadata: Difference between revisions

From Resonite Wiki
Automated: update component fields
add inof
 
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=MeshAssetMetadataComponent.png
|Image=MeshAssetMetadataComponent.png
|Name=Mesh Asset Metadata
|Name=Mesh Asset Metadata
}}
}}
The '''MeshAssetMetadata''' component gives info about the data on a mesh component.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Mesh|{{RootFieldType|AssetRef`1|[[Type:Mesh|Mesh]]}}|TypeAdv0=true|
|Mesh|{{RootFieldType|AssetRef`1|[[Type:Mesh|Mesh]]}}|TypeAdv0=true| The mesh to get meta data on.
|VertexCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv1=true|
|VertexCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv1=true| The amount of vertices in <code>Mesh</code>.
|TriangleCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv2=true|
|TriangleCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv2=true| The amount of triangles in <code>Mesh</code>.
|PointCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv3=true|
|PointCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv3=true| the amount of vertices with no connected faces in <code>Mesh</code>.
|SubmeshCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv4=true|
|SubmeshCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv4=true| How many sub meshes are in the main <code>Mesh</code>.
|BoneCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv5=true|
|BoneCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv5=true| The amount of bones in <code>Mesh</code>.
|BlendshapeCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv6=true|
|BlendshapeCount|{{RootFieldType|RawOutput`1|[[Type:Int|Int]]}}|TypeAdv6=true| The amount of blendshapes in <code>Mesh</code>.
|HasNormals|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv7=true|
|HasNormals|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv7=true| Whether <code>Mesh</code> has normal data.
|HasTangents|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv8=true|
|HasTangents|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv8=true| Whether <code>Mesh</code> has tangent data.
|HasVertexColors|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv9=true|
|HasVertexColors|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv9=true| Whether <code>Mesh</code> has vertex color data.
|HasUV0s|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv10=true|
|HasUV0s|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv10=true| Whether <code>Mesh</code> has data for the first UV map.
|HasUV1s|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv11=true|
|HasUV1s|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv11=true| Whether <code>Mesh</code> has data for the second UV map.
|HasUV2s|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv12=true|
|HasUV2s|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv12=true| Whether <code>Mesh</code> has data for the third UV map.
|HasUV3s|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv13=true|
|HasUV3s|{{RootFieldType|RawOutput`1|[[Type:Bool|Bool]]}}|TypeAdv13=true| Whether <code>Mesh</code> has data for the fourth UV map.
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Attach to a slot and provide a Mesh to <code>Mesh</code> to make the component output data.


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Mesh Asset Metadata]]
[[Category:Components{{#translation:}}|Mesh Asset Metadata]]
[[Category:Components:Assets:Utility{{#translation:}}|Mesh Asset Metadata]]
[[Category:Components:Assets:Utility{{#translation:}}|Mesh Asset Metadata]]

Latest revision as of 19:04, 25 January 2025

Component image 
Mesh Asset Metadata component as seen in the Scene Inspector

The MeshAssetMetadata component gives info about the data on a mesh component.

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.
Mesh Mesh The mesh to get meta data on.
VertexCount raw output of Int The amount of vertices in Mesh.
TriangleCount raw output of Int The amount of triangles in Mesh.
PointCount raw output of Int the amount of vertices with no connected faces in Mesh.
SubmeshCount raw output of Int How many sub meshes are in the main Mesh.
BoneCount raw output of Int The amount of bones in Mesh.
BlendshapeCount raw output of Int The amount of blendshapes in Mesh.
HasNormals raw output of Bool Whether Mesh has normal data.
HasTangents raw output of Bool Whether Mesh has tangent data.
HasVertexColors raw output of Bool Whether Mesh has vertex color data.
HasUV0s raw output of Bool Whether Mesh has data for the first UV map.
HasUV1s raw output of Bool Whether Mesh has data for the second UV map.
HasUV2s raw output of Bool Whether Mesh has data for the third UV map.
HasUV3s raw output of Bool Whether Mesh has data for the fourth UV map.

Usage

Attach to a slot and provide a Mesh to Mesh to make the component output data.

Examples

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


See Also