UxrGrabbableObjectAnchor.AddPlacingValidator Method
Adds a placing validator to the internal list of validators. Placing validators are functions that are used in addition to compatibility tags in order to determine if a UxrGrabbableObject can be placed on the anchor. An object can be placed on an anchor if the tag is compatible and if it is allowed by all of the placing validators.
Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public void AddPlacingValidator(
Func<UxrGrabbableObject, bool> validator
)
Parameters
- validator
- Type: System.Func(UxrGrabbableObject, Boolean)
New placing validator function to add. It takes an UxrGrabbableObject as input and returns a boolean telling whether it can be placed or not
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The validator function is null |
See Also
Reference
UxrGrabbableObjectAnchor Class
UltimateXR.Manipulation Namespace