Skip to content

SubmeshVisibilityBoolDriver

Inheritance 4 ancestors · 50 siblings

Class Documentation

Edit documentation

A bool driver that tests whether submeshes of the source's mesh are shown or hidden. It reads the current submesh visibility of the mesh, which animation events such as SubmeshVisibilityEventData change.

VISIBLE AnySubmesh Returns true when
true true at least one of Submeshes is shown
true false every one of Submeshes is shown
false true at least one of Submeshes is hidden
false false every one of Submeshes is hidden

The source must be a game object with a skinned mesh. The driver returns false without one.

Properties

AnySubmesh

Bool = true
Edit documentation

Selects the combination: true passes when one submesh is in the state, false only when all of them are.

Submeshes

List<Hash> = []
Edit documentation

The hashes of the submesh names to test.

VISIBLE

Bool = true
Edit documentation

Selects the state to test for: true tests that the submeshes are shown, false that they are hidden.