Component:QuadArrayMesh: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page QuadArrayMesh (Component) to Component:QuadArrayMesh: Creating component Namespace
not a stub anymore
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=QuadArrayMeshComponent.png
|Image=QuadArrayMeshComponent.png
|Name=Quad Array Mesh
|Name=Quad Array Mesh
}}
}}
Quad array mesh makes a bunch of quads with defined positions, rotations, vertex colors, and UV coordinates which are rendered as one mesh. This is made from Quad brushes which can be found in the resonite essentials folder.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|HighPriorityIntegration|Bool|
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
|OverrideBoundingBox|Bool|
|OverrideBoundingBox|Bool| {{Template:Override Bounding Box}}
|OverridenBoundingBox|BoundingBox|
|OverridenBoundingBox|BoundingBox| {{Template:Overridden Bounding Box}}
|Points|SyncArray`1|TypeString3=SyncArray<float3>|
|Profile|ColorProfile| {{Template:ProceduralMeshColorProfile}}
|Sizes|SyncArray`1|TypeString4=SyncArray<float2>|
|Points|{{RootFieldType|SyncArray`1|[[Type:Float3|Float3]]}}|TypeAdv4=true| An array inaccessible without [[Mods]] that defines where each quad for this mesh should be in local space.
|Rotations|SyncArray`1|TypeString5=SyncArray<floatQ>|
|Sizes|{{RootFieldType|SyncArray`1|[[Type:Float2|Float2]]}}|TypeAdv5=true| An array inaccessible without [[Mods]] that defines the scale for each quad for this mesh in local space.
|Colors|SyncArray`1|TypeString6=SyncArray<color>|
|Rotations|{{RootFieldType|SyncArray`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv6=true| An array inaccessible without [[Mods]] that defines the rotation for each quad for this mesh in local space.
|UVs|SyncArray`1|TypeString7=SyncArray<float4>|
|Colors|{{RootFieldType|SyncArray`1|[[Type:Color|Color]]}}|TypeAdv7=true| An array inaccessible without [[Mods]] that defines the vertex colors for each quad for this mesh.
|ColorsProfile|ColorProfile| The color profile of each quad.
|UVs|{{RootFieldType|SyncArray`1|[[Type:Float4|Float4]]}}|TypeAdv9=true| An array inaccessible without [[Mods]] xy of each element defines the center of each quad and zw defines the uv scales of each quad on a texture/material.
}}
 
== Sync Delegates ==
{{Table ComponentTriggers
|BakeMesh()|[[Type:Action|Action]]|{{Template:BakeMeshSyncMethod}}
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
This component is not usually used directly


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
Made by Quad brushes in the resonite essentials folder.
{{stub}}


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Quad Array Mesh]]
[[Category:Components{{#translation:}}|Quad Array Mesh]]
[[Category:Components:Assets:Procedural Meshes{{#translation:}}|Quad Array Mesh]]
[[Category:Components:Assets:Procedural Meshes{{#translation:}}|Quad Array Mesh]]

Latest revision as of 18:58, 13 November 2024

Component image 
Quad Array Mesh component as seen in the Scene Inspector

Quad array mesh makes a bunch of quads with defined positions, rotations, vertex colors, and UV coordinates which are rendered as one mesh. This is made from Quad brushes which can be found in the resonite essentials folder.

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.
HighPriorityIntegration Bool If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes.
OverrideBoundingBox Bool Force the bounding box calculated from this component to use OverridenBoundingBox instead of calculating when requested.
OverridenBoundingBox BoundingBox the bounding box this component should say it has when OverrideBoundingBox is enabled. Useful for bounding box calculations with Flux, or changing the selection box for this component when rendered.
Profile ColorProfile The profile that the vertex colors for this mesh should be displayed in.
Points array of Float3 An array inaccessible without Mods that defines where each quad for this mesh should be in local space.
Sizes array of Float2 An array inaccessible without Mods that defines the scale for each quad for this mesh in local space.
Rotations array of FloatQ An array inaccessible without Mods that defines the rotation for each quad for this mesh in local space.
Colors array of Color An array inaccessible without Mods that defines the vertex colors for each quad for this mesh.
ColorsProfile ColorProfile The color profile of each quad.
UVs array of Float4 An array inaccessible without Mods xy of each element defines the center of each quad and zw defines the uv scales of each quad on a texture/material.

Sync Delegates

Triggers
Method Name Method type and Arguments. Description
BakeMesh() Action Bake meshes is a sync method that creates a static mesh component with this component, replaces all references to this component with the static mesh component, then deletes this component.

Usage

This component is not usually used directly

Examples

Made by Quad brushes in the resonite essentials folder.

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


See Also