add info and finish for now |
Updated description, added link. |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<languages></languages> | <languages></languages> | ||
{{Infobox Component | {{Infobox Component | ||
|Image=MaterialApplyPolicyComponent.png | |Image=MaterialApplyPolicyComponent.png | ||
|Name= | |Name=MaterialApplyPolicy | ||
}} | }} | ||
The '''MaterialApplyPolicy''' component allows for controlling the ability for the [[Material Tool]] to apply materials to the slot hierarchy's SkinnedMeshRenderer/MeshRenderer components. | |||
<translate> | |||
<!--T:1--> | |||
The '''MaterialApplyPolicy''' component allows for controlling the ability for the [[Material Tool]] to apply materials to the [[Slot|slot]] hierarchy's [[Tag|tagged]] with this component onto the SkinnedMeshRenderer/MeshRenderer components. | |||
</translate> | </translate> | ||
<translate> | == <translate><!--T:2--> Fields</translate> == | ||
<!--T:2--> | |||
{{Table ComponentFields | {{Table ComponentFields | ||
|CanApply|Bool|Setting this to false will prevent the [[Material Tool]] from applying materials to any SkinnedMeshRenderer/MeshRenderer components in the slot or child slots. | |CanApply|Bool|<translate><!--T:8--> Setting this to false will prevent the [[Material Tool]] from applying materials to any SkinnedMeshRenderer/MeshRenderer components in the slot or child slots.</translate> | ||
}} | }} | ||
</translate> | |||
== <translate><!--T:3--> Usage</translate> == | |||
<translate> | <translate> | ||
<!--T: | <!--T:9--> | ||
When this component is added to a [[Slot]] with a [[Component:SkinnedMeshRenderer|SkinnedMeshRenderer]] or [[Component:MeshRenderer|MeshRenderer]] attached, it allows one to limit the effects of the [[Material Tool]]. | When this component is added to a [[Slot]] with a [[Component:SkinnedMeshRenderer|SkinnedMeshRenderer]] or [[Component:MeshRenderer|MeshRenderer]] attached, it allows one to limit the effects of the [[Material Tool]]. | ||
</translate> | </translate> | ||
== <translate><!--T:4--> Examples</translate> == | |||
<translate> | <translate> | ||
<!--T: | <!--T:10--> | ||
On an avatar, you can try adding this component to the root of the avatar, making sure the avatar has a [[Component:ObjectRoot]], and set <code>CanApply</code> to false. Doing this will ensure that the avatar's material cannot be changed by the Material Tool. | On an avatar, you can try adding this component to the root of the avatar, making sure the avatar has a [[Component:ObjectRoot]], and set <code>CanApply</code> to false. Doing this will ensure that the avatar's material cannot be changed by the Material Tool. | ||
Line 32: | Line 33: | ||
</translate> | </translate> | ||
<translate> | == <translate><!--T:5--> See Also</translate> == | ||
<!--T:5--> | |||
* [[Components:MeshRenderer|MeshRenderer]] | * [[Components:MeshRenderer|MeshRenderer]] | ||
* [[Components:SkinnedMeshRenderer|SkinnedMeshRenderer]] | * [[Components:SkinnedMeshRenderer|SkinnedMeshRenderer]] | ||
[[Category:Components{{#translation:}}|Material Apply Policy]] | [[Category:Components{{#translation:}}|Material Apply Policy]] | ||
[[Category:Components:Assets:Tagging{{#translation:}}|Material Apply Policy]] | [[Category:Components:Assets:Tagging{{#translation:}}|Material Apply Policy]] |
Latest revision as of 22:57, 20 March 2025

The MaterialApplyPolicy component allows for controlling the ability for the Material Tool to apply materials to the slot hierarchy's tagged with this component onto the SkinnedMeshRenderer/MeshRenderer components.
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. |
CanApply
|
Bool | Setting this to false will prevent the Material Tool from applying materials to any SkinnedMeshRenderer/MeshRenderer components in the slot or child slots. |
Usage
When this component is added to a Slot with a SkinnedMeshRenderer or MeshRenderer attached, it allows one to limit the effects of the Material Tool.
Examples
On an avatar, you can try adding this component to the root of the avatar, making sure the avatar has a Component:ObjectRoot, and set CanApply
to false. Doing this will ensure that the avatar's material cannot be changed by the Material Tool.
Adding this component to the Slot of a MeshRender and setting CanApply
to true can allow one to explicitly change the material in specific places on small objects.