Component:RawGraphic: Difference between revisions

From Resonite Wiki
Removed stub category.
Fixed link. Basic cleanup.
 
Line 8: Line 8:


<!--T:2-->
<!--T:2-->
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.
The '''RawGraphic''' component takes in a [[Material]] or a [[Material Property Block]] component, then shows the raw graphic image onto the [[UIX]].


<!--T:3-->
<!--T:3-->
Line 34: Line 34:
<!--T:6-->
<!--T:6-->
== Related Components ==
== Related Components ==
* [[Component:MainTexturePropertyBlock|MainTexturePropertyBlock]]
* [[Component:Projection360PropertyBlock|Projection360PropertyBlock]]
* [[Component:MainAndMaskTexturePropertyBlock|MainAndMaskTexturePropertyBlock]]
</translate>
</translate>
[[Category:Components{{#translation:}}|Raw Graphic]]
[[Category:Components{{#translation:}}|Raw Graphic]]
[[Category:Components:UIX:Graphics{{#translation:}}|Raw Graphic]]
[[Category:Components:UIX:Graphics{{#translation:}}|Raw Graphic]]

Latest revision as of 22:17, 28 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 raw graphic image onto the UIX.

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