Component:ColorWheelTriangleMesh: Difference between revisions

From Resonite Wiki
template
add info
 
Line 3: Line 3:
|Name=Color Wheel Triangle Mesh
|Name=Color Wheel Triangle Mesh
}}
}}
{{stub}}
The '''ColorWheelTriangleMesh''' component is used in the old platform's color pickers. Some may call this a "flower" or a "color picker" visual.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
Line 11: Line 11:
|OverridenBoundingBox|BoundingBox| {{Template:Overridden Bounding Box}}
|OverridenBoundingBox|BoundingBox| {{Template:Overridden Bounding Box}}
|Profile|ColorProfile| {{Template:ProceduralMeshColorProfile}}
|Profile|ColorProfile| {{Template:ProceduralMeshColorProfile}}
|Hue|Float|
|Hue|Float| The Hue the user picked.
|OuterRadius|Float|
|OuterRadius|Float| The radius of the outer edge of the outer ring of the color circle of hues.
|InnerRadius|Float|
|InnerRadius|Float| The radius of the inner edge of the outer ring of the color circle of hues.
|RingSegments|Int|
|RingSegments|Int| How many ring wise subdivisions of the outer ring of color hues.
|CursorPosition|Float3|
|CursorPosition|Float3| The position of the cursor inside of the triangle.
|CursorSegments|Int|
|CursorSegments|Int| How many ring wise subdivisions of the color picker cursor ring.
|CursorColor|ColorX|
|CursorColor|ColorX| The color of the cursor for color picking.
|CursorOuterRadius|Float|
|CursorOuterRadius|Float| The radius of the outer edge of the cursor ring.
|CursorInnerRadius|Float|
|CursorInnerRadius|Float| The radius of the inner edge of the cursor ring.
|CursorZOffset|Float|
|CursorZOffset|Float| How much to offset the color picker cursor off the surface of the triangle.
}}
}}


Line 28: Line 28:
}}
}}


== Behavior ==
== Usage ==
Attach to a slot and insert into a [[Component:MeshRenderer]] that supports vertex colors to view what it looks like.


== Examples ==
== Examples ==
Used in color pickers from other platform content.


== See Also ==
== See Also ==
Line 36: Line 38:
[[Category:Components:Uncategorized{{#translation:}}|Color Wheel Triangle Mesh]]
[[Category:Components:Uncategorized{{#translation:}}|Color Wheel Triangle Mesh]]
[[Category:Components{{#translation:}}|Color Wheel Triangle Mesh]]
[[Category:Components{{#translation:}}|Color Wheel Triangle Mesh]]
[[Category:ComponentStubs]]

Latest revision as of 21:08, 11 February 2025

Component image 
Color Wheel Triangle Mesh component as seen in the Scene Inspector

The ColorWheelTriangleMesh component is used in the old platform's color pickers. Some may call this a "flower" or a "color picker" visual.

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.
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.
Hue Float The Hue the user picked.
OuterRadius Float The radius of the outer edge of the outer ring of the color circle of hues.
InnerRadius Float The radius of the inner edge of the outer ring of the color circle of hues.
RingSegments Int How many ring wise subdivisions of the outer ring of color hues.
CursorPosition Float3 The position of the cursor inside of the triangle.
CursorSegments Int How many ring wise subdivisions of the color picker cursor ring.
CursorColor ColorX The color of the cursor for color picking.
CursorOuterRadius Float The radius of the outer edge of the cursor ring.
CursorInnerRadius Float The radius of the inner edge of the cursor ring.
CursorZOffset Float How much to offset the color picker cursor off the surface of the triangle.

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

Attach to a slot and insert into a Component:MeshRenderer that supports vertex colors to view what it looks like.

Examples

Used in color pickers from other platform content.

See Also