Humanoid Control for Unity v4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | Properties | List of all members
Passer.VisitorPossessions Class Reference

Description

The Possession of a Humanoid Visitor.

Inherits MonoBehaviour.

Public Member Functions

void TryAddGameObject (GameObject gameObject)
 Try to add the gameObject to this humanoidpossessions. This only succeeds whent the hameObject has a Possessable component.
 
void AddPossessions (Possessable[] scenePossessions, bool removable=true)
 
Possession Add (Possessable possessable, bool preserved=false)
 Add the possessable object to the humanoidPossessions.
 
void DeletePossession (Possession possession)
 
void UseNextAvatar ()
 
void UseAvatar (int avatarIndex)
 

Static Public Member Functions

static void DestroyScenePossessions ()
 
static IEnumerator RetrievePossessionAsync (Possession possession, System.Action< GameObject > callback)
 
static IEnumerator RetrievePossessableAsync (string possessableLocation, string possessablePath, System.Action< GameObject > callback)
 
static void UnloadPossession ()
 
static int mod (int k, int n)
 

Public Attributes

List< Possession > possessions
 
Possessable[] defaultPossessions
 The possessions which are available from the start.
 
bool clearOnAwake
 Clear the possessions when the application is started.
 

Protected Member Functions

virtual void Awake ()
 
virtual void OnDestroy ()
 

Static Protected Attributes

static List< CachedPossessionBundle > bundleCache = new List<CachedPossessionBundle>()
 
static List< CachedPossession > cache = new List<CachedPossession>()
 

Properties

List< Possession > myPossessions [get]
 

Member Function Documentation

◆ TryAddGameObject()

void Passer.VisitorPossessions.TryAddGameObject ( GameObject  gameObject)

Try to add the gameObject to this humanoidpossessions. This only succeeds whent the hameObject has a Possessable component.

Parameters
gameObjectThe GameObject to add

◆ Add()

Possession Passer.VisitorPossessions.Add ( Possessable  possessable,
bool  preserved = false 
)

Add the possessable object to the humanoidPossessions.

Parameters
possessableThe possessable object to add
Returns
The persistent possession

Member Data Documentation

◆ clearOnAwake

bool Passer.VisitorPossessions.clearOnAwake

Clear the possessions when the application is started.

Default possessions will not be cleared. This works only on real Humanoids, not on HumanoidInterfaces/Sites


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