The Possession of a Humanoid Visitor.
- Default possessions, see PawnPossessions::defaultPossessions
- Clear at start, see PawnPossessions::clearAtStart
- Version
- 4.0 and higher
Inherits MonoBehaviour.
|
| 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 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) |
| |
|
|
List< Possession > | possessions |
| |
|
Possessable[] | defaultPossessions |
| | The possessions which are available from the start.
|
| |
| bool | clearOnAwake |
| | Clear the possessions when the application is started.
|
| |
|
|
virtual void | Awake () |
| |
|
virtual void | OnDestroy () |
| |
|
|
static List< CachedPossessionBundle > | bundleCache = new List<CachedPossessionBundle>() |
| |
|
static List< CachedPossession > | cache = new List<CachedPossession>() |
| |
|
|
List< Possession > | myPossessions [get] |
| |
◆ 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
-
| gameObject | The GameObject to add |
◆ Add()
| Possession Passer.VisitorPossessions.Add |
( |
Possessable |
possessable, |
|
|
bool |
preserved = false |
|
) |
| |
Add the possessable object to the humanoidPossessions.
- Parameters
-
| possessable | The possessable object to add |
- Returns
- The persistent possession
◆ 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:
- d:/Unity/Humanoid4/Humanoid4_Pro/Assets/humanoidcontrol4_pro/Runtime/Visitors/Scripts/VisitorPossessions.cs