Component:RawGraphic: Difference between revisions

From Resonite Wiki
Automated: update Fields, Categories
Filled in this component page.
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=RawGraphicComponent.png
|Image=RawGraphicComponent.png
Line 9: Line 8:


<!--T:2-->
<!--T:2-->
== Intoduction ==
The '''RawGraphic''' component takes in a [[Material]] or a [[Type:MaterialPropertyBlock|Material Property Block]] component, then shows the rew graphic image onto the [[UIX]]. The property block field takes in either a [[Component:MainTexturePropertyBlock|MainTexturePropertyBlock]], [[Component:Projection360PropertyBlock|Projection360PropertyBlock]], or [[Component:MainAndMaskTexturePropertyBlock|MainAndMaskTexturePropertyBlock]] component.


<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Material|{{RootFieldType|AssetRef`1|[[Type:Material|Material]]}}|TypeAdv0=true|
|Material|{{RootFieldType|AssetRef`1|[[Type:Material|Material]]}}|TypeAdv0=true|The material to take the raw graphic from.
|PropertyBlock|{{RootFieldType|AssetRef`1|[[Type:MaterialPropertyBlock|MaterialPropertyBlock]]}}|TypeAdv1=true|
|PropertyBlock|{{RootFieldType|AssetRef`1|[[Type:MaterialPropertyBlock|MaterialPropertyBlock]]}}|TypeAdv1=true|The image within a literal image block.
|FillRect|Rect|
|FillRect|Rect|The filling rect for this image.
|Color|ColorX|
|Color|ColorX|Changes the color of the image.
|UVRect|Rect|
|UVRect|Rect|Shifts the UV of the raw image.
|Orientation|RectOrientation|
|Orientation|RectOrientation|Rotates the raw image and respects aspect ratio.
|Normal|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv6=true|
|Normal|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv6=true|The normal for this raw graphic.
|Tangent|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float4|Float4]]&gt;'''|TypeAdv7=true|
|Tangent|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float4|Float4]]&gt;'''|TypeAdv7=true|The tangent for this raw graphic.
|HideWithNoMaterial|Bool|
|HideWithNoMaterial|Bool|If there is no material, hid this raw image.
|PreserveUVAspectRatio|Bool|
|PreserveUVAspectRatio|Bool|If this raw graphic should preserve its aspect ratio.
|InteractionTarget|Bool|
|InteractionTarget|Bool|Makes this image as the interaction target for this UIX.
}}
}}


<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
Use this component when the [[Component:Image|Image]] component does not have what your looking for in your [[UIX]] design.


<!--T:5-->
<!--T:5-->

Revision as of 06:35, 21 July 2024

Component image 
RawGraphic component as seen in the Scene Inspector


The RawGraphic component takes in a Material or a Material Property Block component, then shows the rew graphic image onto the UIX. The property block field takes in either a MainTexturePropertyBlock, Projection360PropertyBlock, or MainAndMaskTexturePropertyBlock component.

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.
Material Material The material to take the raw graphic from.
PropertyBlock MaterialPropertyBlock The image within a literal image block.
FillRect Rect The filling rect for this image.
Color ColorX Changes the color of the image.
UVRect Rect Shifts the UV of the raw image.
Orientation RectOrientation Rotates the raw image and respects aspect ratio.
Normal Nullable`1<Float3> The normal for this raw graphic.
Tangent Nullable`1<Float4> The tangent for this raw graphic.
HideWithNoMaterial Bool If there is no material, hid this raw image.
PreserveUVAspectRatio Bool If this raw graphic should preserve its aspect ratio.
InteractionTarget Bool Makes this image as the interaction target for this UIX.

Usage

Use this component when the Image component does not have what your looking for in your UIX design.

Examples

Related Components