Skip to content

Commit e5609d0

Browse files
committed
adding accesible properties for the two now-private flags
1 parent a9cad91 commit e5609d0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Assets/HoloToolkit/Input/Scripts/Focus/SimpleSinglePointerSelector.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ public class SimpleSinglePointerSelector : MonoBehaviour, ISourceStateHandler, I
2323

2424
[Tooltip("If true, search for a cursor if one isn't explicitly set.")]
2525
[SerializeField]
26-
private bool SearchForCursorIfUnset = true;
26+
private bool searchForCursorIfUnset = true;
27+
public bool SearchForCursorIfUnset { get { return searchForCursorIfUnset; } set { searchForCursorIfUnset = value; } }
2728

2829
[Tooltip("If true, always select the best pointer available (OS behaviour does not autoselect).")]
2930
[SerializeField]
30-
private bool AutoselectBestAvailable = false;
31+
private bool autoselectBestAvailable = false;
32+
public bool AutoselectBestAvailable { get { return autoselectBestAvailable; } set { autoselectBestAvailable = value; } }
3133

3234
#endregion
3335

@@ -78,7 +80,7 @@ private void OnDisable()
7880
void ISourceStateHandler.OnSourceDetected(SourceStateEventData eventData)
7981
{
8082
// If a pointing controller just became available, set it as primary.
81-
if (AutoselectBestAvailable && SupportsPointingRay(eventData))
83+
if (autoselectBestAvailable && SupportsPointingRay(eventData))
8284
{
8385
ConnectBestAvailablePointer();
8486
}
@@ -126,7 +128,7 @@ private void RemoveInputManagerListenerIfNeeded()
126128

127129
private void FindCursorIfNeeded()
128130
{
129-
if ((Cursor == null) && SearchForCursorIfUnset)
131+
if ((Cursor == null) && searchForCursorIfUnset)
130132
{
131133
Debug.LogWarningFormat(
132134
this,

0 commit comments

Comments
 (0)