Component:MaterialApplyPolicy: Difference between revisions

From Resonite Wiki
m GreaseMonkey moved page MaterialApplyPolicy (Component) to Component:MaterialApplyPolicy: Move to Component namespace
Marked this version for translation
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
<!--T:1-->
<!--T:1-->
{{stub}}
{{stub}}
(Currently written in Japanese. for native speaker: plz edit for translation from Ja later)
{{Infobox Component
{{Infobox Component
|Image=MaterialApplyPolicyComponent.png
|Image=MaterialApplyPolicyComponent.png
|Name=Material Apply Policy
|Name=Material Apply Policy
}}
}}
</translate>


== Fields == <!--T:2-->
<translate>
<!--T:2-->
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|CanApply|Bool|
|CanApply|Bool|
}}
}}
</translate>


== Usage == <!--T:3-->
<translate>
SkinnedMeshRenderer/MeshRendererと同じSlotについている場合、MaterialTipを使ってマテリアルを適用できる機構に制限をつけるやつです。 
<!--T:3-->
CanApplyを無効にするとMaterialTipを使用して適用できなくなります。
== Usage ==
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]].


== Examples == <!--T:4-->
<!--T:6-->
<li>SkinnedMeshRenderer に入れてアバターのマテリアルを変更されないようにこのコンポーネントを追加し、CanApplyをfalseに設定。</li>
Setting <code>CanApply</code> to false will prevent the Material Tool from applying materials to any SkinnedMeshRenderer/MeshRenderer components in the slot.
<li>MeshRenderer に入れて小物のマテリアルについて特定の場所が明示的に変更できるようにCanApplyをtrueに設定。</li>
</translate>


== Related Components == <!--T:5-->
<translate>
<li>[[MeshRenderer_(Component)|MeshRenderer]]</li>
<!--T:4-->
<li>[[SkinnedMeshRenderer_(Component)|SkinnedMeshRenderer]]</li>
== Examples ==
On an avatar, you can try adding this component to the Slot of each SkinnedMeshRender, setting <code>CanApply</code> to false in each case. Doing this will ensure that the avatar's material cannot be changed by the Material Tool.
 
<!--T:7-->
Adding this component to the Slot of a MeshRender and setting <code>CanApply</code> to true can allow one to explicitly change the material in specific places on small objects.
</translate>
 
<translate>
<!--T:5-->
== Related Components ==
* [[Components:MeshRenderer|MeshRenderer]]
* [[Components:SkinnedMeshRenderer|SkinnedMeshRenderer]]
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:ComponentStubs]]
[[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 00:07, 30 January 2024

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
Material Apply Policy component as seen in the Scene Inspector


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.
CanApply Bool

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.

Setting CanApply to false will prevent the Material Tool from applying materials to any SkinnedMeshRenderer/MeshRenderer components in the slot.

Examples

On an avatar, you can try adding this component to the Slot of each SkinnedMeshRender, setting CanApply to false in each case. 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.

Related Components