GrabPoints
: List< Pose >
[Get] |
Lists the current grab points as poses.
These are used to calculate transformations based on user interactions.
Signature
List<Pose> GrabPoints |
MaxGrabPoints
: int
[Get][Set] |
Gets or sets the maximum number of grab points.
This property is crucial for defining how many points can be used to interact with the object.
Signature
int MaxGrabPoints |
Transform
: Transform
[Get] |
Provides access to the transform that should be manipulated.
This can be the transform of the GameObject this component is attached to or a different specified transform.
Signature
Transform Transform |
Awake
()
|
Signature
override void Awake() Returns override void |
OnDestroy
()
|
Signature
virtual void OnDestroy() Returns void |
OnDisable
()
|
Signature
override void OnDisable() Returns override void |
PointableElementUpdated
(
evt
)
|
Signature
override void PointableElementUpdated(PointerEvent evt) Parameters evt: PointerEventReturns override void |
Reset
()
|
Signature
virtual void Reset() Returns void |
Start
()
|
Signature
override void Start() Returns override void |
InjectOptionalKinematicWhileSelected
(
kinematicWhileSelected
)
|
Determines whether the Rigidbody should be locked to kinematic mode while the object is selected.
Signature
void InjectOptionalKinematicWhileSelected(bool kinematicWhileSelected) Parameters kinematicWhileSelected: bool
A boolean value indicating whether to lock the Rigidbody to kinematic mode during selection.
Returns void |
InjectOptionalOneGrabTransformer
(
transformer
)
|
Injects an optional one-hand transformer component to be used when the object is grabbed with one hand.
Signature
void InjectOptionalOneGrabTransformer(ITransformer transformer) Parameters transformer: ITransformer
The transformer component that defines how the object behaves when grabbed with one hand.
Returns void |
InjectOptionalRigidbody
(
rigidbody
)
|
Injects an optional Rigidbody component to be controlled by this Grabbable object.
Signature
void InjectOptionalRigidbody(Rigidbody rigidbody) Parameters rigidbody: Rigidbody
The Rigidbody component to be manipulated during grab interactions.
Returns void |
InjectOptionalTargetTransform
(
targetTransform
)
|
Sets an optional target transform to which all transformations will be applied, instead of the object this component is attached to.
Signature
void InjectOptionalTargetTransform(Transform targetTransform) Parameters Returns void |
InjectOptionalThrowWhenUnselected
(
throwWehenUnselected
)
|
///
Configures whether the object should simulate throwing physics when unselected based on user interactions.
Signature
void InjectOptionalThrowWhenUnselected(bool throwWehenUnselected) Parameters throwWehenUnselected: boolReturns void |
InjectOptionalTwoGrabTransformer
(
transformer
)
|
Injects an optional two-hand transformer component to be used when the object is grabbed with two hands.
Signature
void InjectOptionalTwoGrabTransformer(ITransformer transformer) Parameters transformer: ITransformer
The transformer component that defines how the object behaves when grabbed with two hands.
Returns void |
ProcessPointerEvent
(
evt
)
|
Implementation of IPointableElement.ProcessPointerEvent(PointerEvent); for details, please refer to the related documentation provided for that interface.
Signature
override void ProcessPointerEvent(PointerEvent evt) Parameters evt: PointerEventReturns override void |
SetTimeProvider
(
timeProvider
)
|
Sets a custom time provider function that returns the current time in seconds.
This is essential for synchronizing time-dependent behaviors within the Grabbable object.
Signature
void SetTimeProvider(Func< float > timeProvider) Parameters timeProvider: Func< float >
A function delegate that returns the current time in seconds.
Returns void |