CreateObject_Example Class |
Namespace: SimpleDemos
The CreateObject_Example type exposes the following members.
Name | Description | |
---|---|---|
CreateObject_Example | ||
CreateObject_Example | Initializes a new instance of the CreateObject_Example class |
Name | Description | |
---|---|---|
ClaimRecoveryFunction |
A function that is called when an ASL object's claim is rejected. This function can be set to be called upon object creation.
| |
MyFloatsFunction |
A function that is called whenever an ASL object calls [!:ASL.ASLObject.SendFloatArray(float[])].
This function can be assigned to an ASL object upon creation.
| |
Start | Initialize values | |
Update | Scene Logic | |
WhatToDoWithMyGameObjectNowThatItIsCreated |
This function is how you get a handle to the object you just created
| |
WhatToDoWithMyOtherGameObjectNowThatItIsCreated |
A function that is called right after an ASL game object is created if that object was passed in the class name and function name of this function.
This is called immediately upon creation, allowing the user a way to access their newly created object after the server has spawned it
|
Name | Description | |
---|---|---|
m_CreateObject | The object type that will be created | |
m_HandleToFreshObjects | Handle to the latest Full Prefab object created | |
m_RotationHolder | Holds the rotation of our object so it gets updated properly - see Transform example for better explanation | |
m_SpawnObject | Toggle for creating an object |