HoloLens 2 Gait Training
The purpose of this project is to create gait training application.
Loading...
Searching...
No Matches
AvatarSpawner Class Reference

This script is responsible for spawning the avatar in the scene. More...

Inheritance diagram for AvatarSpawner:
Inheritance graph
Collaboration diagram for AvatarSpawner:
Collaboration graph

Public Member Functions

void SpawnAvatar ()
 Spawn the avatar corresponding to the specified index. More...
 

Private Member Functions

void Update ()
 Gets called per each frame More...
 
void SetVisibleCellIndex ()
 Set the current cell index belong to the avatar. More...
 

Private Attributes

ScrollingObjectCollection m_Scrollview
 Reference to the scrollview
More...
 
GameObject[] m_AvatarPrefabs
 Reference to the avatar prefabs. More...
 
int m_AvatarIndex = -1
 Avatar index value. More...
 
GameObject m_LastAvatar
 Last avatar. More...
 

Static Private Attributes

const int m_NumberOfAvatars = 7
 Defines the number of avatars. More...
 

Detailed Description

This script is responsible for spawning the avatar in the scene.

Definition at line 8 of file AvatarSpawner.cs.

Member Function Documentation

◆ SetVisibleCellIndex()

void AvatarSpawner.SetVisibleCellIndex ( )
inlineprivate

Set the current cell index belong to the avatar.


Definition at line 37 of file AvatarSpawner.cs.

Here is the caller graph for this function:

◆ SpawnAvatar()

void AvatarSpawner.SpawnAvatar ( )
inline

Spawn the avatar corresponding to the specified index.


Definition at line 51 of file AvatarSpawner.cs.

◆ Update()

void AvatarSpawner.Update ( )
inlineprivate

Gets called per each frame

Definition at line 29 of file AvatarSpawner.cs.

Here is the call graph for this function:

Field Documentation

◆ m_AvatarIndex

int AvatarSpawner.m_AvatarIndex = -1
private

Avatar index value.

Definition at line 18 of file AvatarSpawner.cs.

◆ m_AvatarPrefabs

GameObject [] AvatarSpawner.m_AvatarPrefabs
private

Reference to the avatar prefabs.

Definition at line 15 of file AvatarSpawner.cs.

◆ m_LastAvatar

GameObject AvatarSpawner.m_LastAvatar
private

Last avatar.

Definition at line 24 of file AvatarSpawner.cs.

◆ m_NumberOfAvatars

const int AvatarSpawner.m_NumberOfAvatars = 7
staticprivate

Defines the number of avatars.

Definition at line 21 of file AvatarSpawner.cs.

◆ m_Scrollview

ScrollingObjectCollection AvatarSpawner.m_Scrollview
private

Reference to the scrollview

Definition at line 12 of file AvatarSpawner.cs.


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