Defined in:Returns a boolean value indicating whether the modifier can be assigned to a particular instance node.
static bool ValidInstance(const Instance *instance);
||The instance node to be tested for validity.|
ValidInstancefunction can be redefined by modifier subclasses. Its implementation should examine the instance node pointed to by the
instanceparameter and return
trueif the modifier type can be used with the node. If the modifier type cannot be used, the
ValidInstancefunction should return
false. If the
ValidInstancefunction is not redefined for a registered subclass of the
Modifierclass, then that modifier type can be assigned to any instance node.
Note that returning
falsefrom an implementation of the
ValidInstancefunction does not guarantee that a particular modifier subclass will not be attached to an instance node, but only that it will not appear in the list of available modifiers in the World Editor for the instance given by the
instanceparameter. An implementation of the
Modifier::ApplyModifierfunction should make no assumptions about whether the instance node satisfies any validity requirements checked by the