Skip to content

Commit

Permalink
fix: avoid API breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Quiroz committed Mar 17, 2021
1 parent 4e1893d commit 2fa4b30
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Runtime/Interaction/Interactables/InteractableHighlighter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using UnityEngine;
using System;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
using Innoactive.Creator.BasicInteraction;

Expand Down Expand Up @@ -136,6 +137,24 @@ private void OnValidate()
}
}

[Obsolete("Use 'string StartHighlighting(Material highlightMaterial, string highlightID = null)' instead")]
public void StartHighlighting(string highlightID, Material highlightMaterial)
{
StartHighlighting(highlightMaterial, highlightID);
}

[Obsolete("Use 'string StartHighlighting(Color highlightColor, string highlightID = null)' instead")]
public void StartHighlighting(string highlightID, Color highlightColor)
{
StartHighlighting(highlightColor, highlightID);
}

[Obsolete("Use 'string StartHighlighting(Texture highlightTexture, string highlightID = null)' instead")]
public void StartHighlighting(string highlightID, Texture highlightTexture)
{
StartHighlighting(highlightTexture, highlightID);
}

private void OnHoverEnter(HoverEnterEventArgs arguments)
{
HighlightHoverAction();
Expand Down

0 comments on commit 2fa4b30

Please sign in to comment.