Skip to content

Commit

Permalink
Made bounds control more overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
HossamBasion authored Mar 26, 2024
1 parent 702ee31 commit 7e5af09
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ private void Awake()
}
}

private void Update()
public virtual void Update()
{
// If we need to recompute bounds (usually because we found a
// UGUI element), make sure we've waited enough frames since
Expand Down Expand Up @@ -672,7 +672,7 @@ private bool ComputeBounds(bool isSecondPass = false)
/// Called by <see cref="BoundsHandleInteractable"/> from its OnSelectExited.
/// Routes the XRI event data through, as well as a reference to itself, the selected handle.
/// </summary>
internal void OnHandleSelectExited(BoundsHandleInteractable handle, SelectExitEventArgs args)
public virtual void OnHandleSelectExited(BoundsHandleInteractable handle, SelectExitEventArgs args)
{
if (currentHandle == handle)
{
Expand All @@ -687,7 +687,7 @@ internal void OnHandleSelectExited(BoundsHandleInteractable handle, SelectExitEv
/// Called by <see cref="BoundsHandleInteractable"/> from its OnSelectEntered.
/// Routes the XRI event data through, as well as a reference to itself, the selected handle.
/// </summary>
internal void OnHandleSelectEntered(BoundsHandleInteractable handle, SelectEnterEventArgs args)
public virtual void OnHandleSelectEntered(BoundsHandleInteractable handle, SelectEnterEventArgs args)
{
if (currentHandle != null)
{
Expand Down Expand Up @@ -734,7 +734,7 @@ internal void OnHandleSelectEntered(BoundsHandleInteractable handle, SelectEnter
private static readonly ProfilerMarker TransformTargetPerfMarker =
new ProfilerMarker("[MRTK] BoundsControl.TransformTarget");

private void TransformTarget()
public virtual void TransformTarget()
{
using (TransformTargetPerfMarker.Auto())
{
Expand Down

0 comments on commit 7e5af09

Please sign in to comment.