Skip to content

Commit c1f3927

Browse files
committed
Adding back API so as not to be a breaking change
1 parent ca5f257 commit c1f3927

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/XR/TrackedPoseDriver.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,13 @@ protected void Reset()
413413
m_TrackingStateInput = new InputActionProperty(new InputAction("Tracking State", expectedControlType: "Integer"));
414414
}
415415

416+
/// <summary>
417+
/// This function is called when the script instance is being loaded.
418+
/// </summary>
419+
protected virtual void Awake()
420+
{
421+
}
422+
416423
/// <summary>
417424
/// This function is called when the object becomes enabled and active.
418425
/// </summary>
@@ -437,6 +444,13 @@ protected void OnDisable()
437444
InputSystem.onDeviceChange -= OnDeviceChanged;
438445
}
439446

447+
/// <summary>
448+
/// This function is called when the <see cref="MonoBehaviour"/> will be destroyed.
449+
/// </summary>
450+
protected virtual void OnDestroy()
451+
{
452+
}
453+
440454
/// <summary>
441455
/// The callback method called after the Input System has completed an update and processed all pending events.
442456
/// </summary>

0 commit comments

Comments
 (0)