Documentation for the Unity C# Library
Loading...
Searching...
No Matches
HighlightOnSelection.cs
Go to the documentation of this file.
1using System;
2using System.Collections;
3using System.Collections.Generic;
4using UnityEngine;
5
6namespace PixoVR.Event
7{
13 {
14 public event Action OnFunctionFinished;
15
16 public void FunctionFinished()
17 {
18
19 }
20
21 public void StartStep(StepItem stepItem, StepFunction function, List<InteractableClass> interactables = null, Action onStepSkipped = null)
22 {
23 foreach (var interactable in interactables)
24 {
25 interactable.WaitForSelection();
26 }
27
28 OnFunctionFinished?.Invoke();
29 }
30 }
31}
Highlight an object when the pointer is on it or when the hand is close to it This is often used to i...
void StartStep(StepItem stepItem, StepFunction function, List< InteractableClass > interactables=null, Action onStepSkipped=null)
void FunctionFinished()
Called to end current step and start a next one.
[Serializable]
Definition StepItem.cs:12
Basic interface of functions. (Please note that iStep is a wrong name)
Definition IStep.cs:10