Documentation for the Unity C# Library
Loading...
Searching...
No Matches
PixoVR.Event.BreakableInteractable< TBreakType > Class Template Reference

Base type for objects with different types of breakdowns. More...

Inheritance diagram for PixoVR.Event.BreakableInteractable< TBreakType >:
[legend]

Public Member Functions

virtual void ActivateSetCallback (Action callback)
 Waiting for object activation.
 
virtual void Active (bool state)
 
virtual void Awake ()
 
virtual void CheckInspectionStatus ()
 
virtual void Execute ()
 Used to indicate to the step manager that some actions were performed on the object.
 
override void GenerateBreakdown (int percentage)
 Generate a breakdown on the object with a certain probability.
 
virtual void HideModel ()
 Disable parts of some object childs models. Useful for configuring object breakdowns.
 
virtual void Highlight (bool state)
 Highlight an object.
 
virtual void Interactive (bool state)
 
virtual void OnTimerExpired ()
 
virtual void OpenInspectionMenu (string quizId)
 Enable inpection menu UI.
 
virtual void PlayForwardAnimation (bool playForward, Action callback)
 Used to play an animation and wait for it to finish.
 
virtual void PrepareInspectionReport (List< InteractableClass > interactables)
 
virtual void RepairElement ()
 Remove from the broken state object.
 
virtual void SetDefaultState ()
 Restoring the original state of an object after any actions with it.
 
virtual void SetInspected ()
 
virtual void SetParametersForItem (string value, string[] additionalValues)
 
void SetTimer (float timer)
 Loops and infinitely runs a method after some time in seconds.
 
virtual void ShowModel ()
 Enable parts of some object childs models. Useful for configuring object breakdowns.
 
void StopTimer ()
 Stop loops and infinitely runs a method.
 
virtual void TurnOffWaitForSelection ()
 Disable waiting for object highlighting with a pointer or hand approach. Mainly used in eval fashion.
 
virtual void TurnOnOffState (bool turnOn)
 
virtual void WaitForSelection ()
 Highlight the object with a pointer or hand approach. Mainly used in evaluation mode.
 

Public Attributes

int BrokenId = 0
 
bool IsActive
 
bool IsBroken
 
bool isInspected = false
 
ItemsEnum ItemId
 
ItemsEnum[] StepsId
 

Protected Member Functions

void SetGrabEnabled (bool isEnabled)
 
void ShowModels ()
 

Protected Attributes

TBreakType _currentBreakdownType
 
DistanceGrabbable _distanceGrabbable
 [SerializeField]
 
Grabbable[] _grabbables
 
GameObject[] brokenModels
 [SerializeField]
 
GameObject[] correctModels
 [SerializeField]
 

Properties

List< Break< TBreakType > > Breaks [get, set]
 

Private Member Functions

void OnStartTargeting (Hand hand, Grabbable grabbable)
 
void OnStopTargeting (Hand hand, Grabbable grabbable)
 
void Start ()
 
IEnumerator StartTimer (float timer)
 

Private Attributes

Outline[] _additionalOutlines
 [SerializeField]
 
List< Break< TBreakType > > _breaks
 [SerializeField]
 
Outline _outline
 [SerializeField]
 
Coroutine _timerCoroutine
 
bool _waitingForSelection
 

Static Private Attributes

const int MaxValue = 100
 
const int MinValue = 1
 

Detailed Description

Base type for objects with different types of breakdowns.

Template Parameters
TBreakType
Type Constraints
TBreakType :Enum 

Definition at line 13 of file BreakableInteractable.cs.

Member Function Documentation

◆ ActivateSetCallback()

virtual void PixoVR.Event.InteractableClass.ActivateSetCallback ( Action callback)
inlinevirtualinherited

Waiting for object activation.

Parameters
callback

Definition at line 281 of file InteractableClass.cs.

◆ Active()

virtual void PixoVR.Event.InteractableClass.Active ( bool state)
inlinevirtualinherited

Definition at line 69 of file InteractableClass.cs.

Here is the caller graph for this function:

◆ Awake()

virtual void PixoVR.Event.InteractableClass.Awake ( )
inlinevirtualinherited

Reimplemented in PixoVR.Event.SimpleInteractable.

Definition at line 64 of file InteractableClass.cs.

◆ CheckInspectionStatus()

virtual void PixoVR.Event.InteractableClass.CheckInspectionStatus ( )
inlinevirtualinherited

Definition at line 324 of file InteractableClass.cs.

Here is the call graph for this function:

◆ Execute()

virtual void PixoVR.Event.InteractableClass.Execute ( )
inlinevirtualinherited

Used to indicate to the step manager that some actions were performed on the object.

Reimplemented in PixoVR.Event.ItemOnClick.

Definition at line 267 of file InteractableClass.cs.

Here is the caller graph for this function:

◆ GenerateBreakdown()

override void PixoVR.Event.BreakableInteractable< TBreakType >.GenerateBreakdown ( int percentBroke)
inlinevirtual

Generate a breakdown on the object with a certain probability.

Parameters
percentBroke

Reimplemented from PixoVR.Event.InteractableClass.

Definition at line 33 of file BreakableInteractable.cs.

Here is the caller graph for this function:

◆ HideModel()

virtual void PixoVR.Event.InteractableClass.HideModel ( )
inlinevirtualinherited

Disable parts of some object childs models. Useful for configuring object breakdowns.

Definition at line 216 of file InteractableClass.cs.

◆ Highlight()

virtual void PixoVR.Event.InteractableClass.Highlight ( bool state)
inlinevirtualinherited

Highlight an object.

Parameters
state

Reimplemented in PixoVR.Event.ItemOnClick.

Definition at line 101 of file InteractableClass.cs.

Here is the caller graph for this function:

◆ Interactive()

virtual void PixoVR.Event.InteractableClass.Interactive ( bool state)
inlinevirtualinherited
Parameters
state

Reimplemented in PixoVR.Event.QuizDisplay, PixoVR.Event.ItemOnClick, and PixoVR.Event.SimpleInteractable.

Definition at line 58 of file InteractableClass.cs.

Here is the call graph for this function:

◆ OnStartTargeting()

void PixoVR.Event.InteractableClass.OnStartTargeting ( Hand hand,
Grabbable grabbable )
inlineprivateinherited

Definition at line 179 of file InteractableClass.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnStopTargeting()

void PixoVR.Event.InteractableClass.OnStopTargeting ( Hand hand,
Grabbable grabbable )
inlineprivateinherited

Definition at line 184 of file InteractableClass.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnTimerExpired()

virtual void PixoVR.Event.InteractableClass.OnTimerExpired ( )
inlinevirtualinherited

Definition at line 380 of file InteractableClass.cs.

Here is the caller graph for this function:

◆ OpenInspectionMenu()

virtual void PixoVR.Event.InteractableClass.OpenInspectionMenu ( string quizId)
inlinevirtualinherited

Enable inpection menu UI.

Parameters
quizId

Reimplemented in PixoVR.Event.QuizDisplay, and PixoVR.Event.QuizInteractable.

Definition at line 193 of file InteractableClass.cs.

◆ PlayForwardAnimation()

virtual void PixoVR.Event.InteractableClass.PlayForwardAnimation ( bool playForward,
Action callback )
inlinevirtualinherited

Used to play an animation and wait for it to finish.

Parameters
playForward
callback

Definition at line 259 of file InteractableClass.cs.

◆ PrepareInspectionReport()

virtual void PixoVR.Event.InteractableClass.PrepareInspectionReport ( List< InteractableClass > interactables)
inlinevirtualinherited

Definition at line 229 of file InteractableClass.cs.

◆ RepairElement()

virtual void PixoVR.Event.InteractableClass.RepairElement ( )
inlinevirtualinherited

Remove from the broken state object.

Definition at line 296 of file InteractableClass.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetDefaultState()

virtual void PixoVR.Event.InteractableClass.SetDefaultState ( )
inlinevirtualinherited

Restoring the original state of an object after any actions with it.

Definition at line 241 of file InteractableClass.cs.

◆ SetGrabEnabled()

void PixoVR.Event.InteractableClass.SetGrabEnabled ( bool isEnabled)
inlineprotectedinherited

Definition at line 308 of file InteractableClass.cs.

◆ SetInspected()

virtual void PixoVR.Event.InteractableClass.SetInspected ( )
inlinevirtualinherited

Definition at line 303 of file InteractableClass.cs.

Here is the caller graph for this function:

◆ SetParametersForItem()

virtual void PixoVR.Event.InteractableClass.SetParametersForItem ( string value,
string[] additionalValues )
inlinevirtualinherited

Reimplemented in PixoVR.Event.QuizDisplay.

Definition at line 233 of file InteractableClass.cs.

◆ SetTimer()

void PixoVR.Event.InteractableClass.SetTimer ( float timer)
inlineinherited

Loops and infinitely runs a method after some time in seconds.

Parameters
timer

Definition at line 345 of file InteractableClass.cs.

Here is the call graph for this function:

◆ ShowModel()

virtual void PixoVR.Event.InteractableClass.ShowModel ( )
inlinevirtualinherited

Enable parts of some object childs models. Useful for configuring object breakdowns.

some

Definition at line 200 of file InteractableClass.cs.

◆ ShowModels()

void PixoVR.Event.InteractableClass.ShowModels ( )
inlineprotectedinherited

Definition at line 77 of file InteractableClass.cs.

Here is the caller graph for this function:

◆ Start()

void PixoVR.Event.BreakableInteractable< TBreakType >.Start ( )
inlineprivate

Definition at line 22 of file BreakableInteractable.cs.

Here is the call graph for this function:

◆ StartTimer()

IEnumerator PixoVR.Event.InteractableClass.StartTimer ( float timer)
inlineprivateinherited

Definition at line 370 of file InteractableClass.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ StopTimer()

void PixoVR.Event.InteractableClass.StopTimer ( )
inlineinherited

Stop loops and infinitely runs a method.

Definition at line 360 of file InteractableClass.cs.

Here is the caller graph for this function:

◆ TurnOffWaitForSelection()

virtual void PixoVR.Event.InteractableClass.TurnOffWaitForSelection ( )
inlinevirtualinherited

Disable waiting for object highlighting with a pointer or hand approach. Mainly used in eval fashion.

Definition at line 154 of file InteractableClass.cs.

Here is the call graph for this function:

◆ TurnOnOffState()

virtual void PixoVR.Event.InteractableClass.TurnOnOffState ( bool turnOn)
inlinevirtualinherited
Parameters
turnOn

Definition at line 289 of file InteractableClass.cs.

Here is the caller graph for this function:

◆ WaitForSelection()

virtual void PixoVR.Event.InteractableClass.WaitForSelection ( )
inlinevirtualinherited

Highlight the object with a pointer or hand approach. Mainly used in evaluation mode.

Definition at line 126 of file InteractableClass.cs.

Here is the call graph for this function:

Member Data Documentation

◆ _additionalOutlines

Outline [] PixoVR.Event.InteractableClass._additionalOutlines
privateinheritedSerializeField

[SerializeField]

Definition at line 40 of file InteractableClass.cs.

◆ _breaks

List<Break<TBreakType> > PixoVR.Event.BreakableInteractable< TBreakType >._breaks
privateSerializeField

[SerializeField]

Definition at line 18 of file BreakableInteractable.cs.

◆ _currentBreakdownType

TBreakType PixoVR.Event.BreakableInteractable< TBreakType >._currentBreakdownType
protected

Definition at line 20 of file BreakableInteractable.cs.

◆ _distanceGrabbable

DistanceGrabbable PixoVR.Event.InteractableClass._distanceGrabbable
protectedinheritedSerializeField

[SerializeField]

Definition at line 44 of file InteractableClass.cs.

◆ _grabbables

Grabbable [] PixoVR.Event.InteractableClass._grabbables
protectedinherited

Definition at line 49 of file InteractableClass.cs.

◆ _outline

Outline PixoVR.Event.InteractableClass._outline
privateinheritedSerializeField

[SerializeField]

Definition at line 36 of file InteractableClass.cs.

◆ _timerCoroutine

Coroutine PixoVR.Event.InteractableClass._timerCoroutine
privateinherited

Definition at line 52 of file InteractableClass.cs.

◆ _waitingForSelection

bool PixoVR.Event.InteractableClass._waitingForSelection
privateinherited

Definition at line 50 of file InteractableClass.cs.

◆ BrokenId

int PixoVR.Event.InteractableClass.BrokenId = 0
inherited

Definition at line 22 of file InteractableClass.cs.

◆ brokenModels

GameObject [] PixoVR.Event.InteractableClass.brokenModels
protectedinheritedSerializeField

[SerializeField]

Definition at line 32 of file InteractableClass.cs.

◆ correctModels

GameObject [] PixoVR.Event.InteractableClass.correctModels
protectedinheritedSerializeField

[SerializeField]

Definition at line 28 of file InteractableClass.cs.

◆ IsActive

bool PixoVR.Event.InteractableClass.IsActive
inherited

Definition at line 20 of file InteractableClass.cs.

◆ IsBroken

bool PixoVR.Event.InteractableClass.IsBroken
inherited

Definition at line 21 of file InteractableClass.cs.

◆ isInspected

bool PixoVR.Event.InteractableClass.isInspected = false
inherited

Definition at line 23 of file InteractableClass.cs.

◆ ItemId

ItemsEnum PixoVR.Event.InteractableClass.ItemId
inherited

Definition at line 19 of file InteractableClass.cs.

◆ MaxValue

const int PixoVR.Event.InteractableClass.MaxValue = 100
staticprivateinherited

Definition at line 47 of file InteractableClass.cs.

◆ MinValue

const int PixoVR.Event.InteractableClass.MinValue = 1
staticprivateinherited

Definition at line 46 of file InteractableClass.cs.

◆ StepsId

ItemsEnum [] PixoVR.Event.InteractableClass.StepsId
inherited

Definition at line 24 of file InteractableClass.cs.

Property Documentation

◆ Breaks

List<Break<TBreakType> > PixoVR.Event.BreakableInteractable< TBreakType >.Breaks
getsetprotected

Definition at line 27 of file BreakableInteractable.cs.


The documentation for this class was generated from the following file: