m ProbablePrime moved page Mask (Component) to Component:Mask: Creating component Namespace |
Fix and add info, no longer stub |
||
Line 11: | Line 11: | ||
== Intoduction == | == Intoduction == | ||
The Mask component restricts the rendering of anything beneath it. It requires an [[Image (Component)|Image]] component, or | The Mask component restricts the rendering of anything beneath it. It requires an [[Image (Component)|Image]] component, text, arc, rectmesh, or anything that displays a graphic on the same slot. Only opaque areas of the graphic on the same slot will render the UIX below. This is also utilized in [[Component:ScrollRect|ScrollRect]] since it can mask anything outside of the scrolling viewport when using the component. | ||
This can have issues with UIX's behind, since there are some rendering bugs with Unity. | |||
<!--T:3--> | <!--T:3--> | ||
== Usage == | == Usage == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|ShowMaskGraphic|Bool|Shows the graphic being used to do the masking | |ShowMaskGraphic|Bool|Shows the graphic being used to do the masking for debug purposes | ||
}} | }} | ||
Line 24: | Line 26: | ||
<!--T:5--> | <!--T:5--> | ||
== Examples == | == Examples == | ||
The [[Component:ScrollRect|ScrollRect]] section which is part of the UIX Canvas object created by the create new menu. | |||
<!--T:6--> | <!--T:6--> | ||
Line 29: | Line 32: | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Mask (Component){{#translation:}}]] | [[Category:Components{{#translation:}}|Mask (Component){{#translation:}}]] | ||
[[Category:Components:UIX:Graphics{{#translation:}}|Mask (Component){{#translation:}}]] | [[Category:Components:UIX:Graphics{{#translation:}}|Mask (Component){{#translation:}}]] |
Revision as of 20:44, 19 February 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Intoduction
The Mask component restricts the rendering of anything beneath it. It requires an Image component, text, arc, rectmesh, or anything that displays a graphic on the same slot. Only opaque areas of the graphic on the same slot will render the UIX below. This is also utilized in ScrollRect since it can mask anything outside of the scrolling viewport when using the component.
This can have issues with UIX's behind, since there are some rendering bugs with Unity.
Usage
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. |
ShowMaskGraphic
|
Bool | Shows the graphic being used to do the masking for debug purposes |
Behavior
Examples
The ScrollRect section which is part of the UIX Canvas object created by the create new menu.