Component:MaterialApplyPolicy

From Resonite Wiki
Revision as of 19:35, 22 December 2024 by 989onan (talk | contribs) (add info and finish for now)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Material Apply Policy component as seen in the Scene Inspector

The MaterialApplyPolicy component allows for controlling the ability for the Material Tool to apply materials to the slot hierarchy's SkinnedMeshRenderer/MeshRenderer components.

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

See Also