Click or drag to resize

CreateObject_Example Class

A simple demo showcasing different ways you can spawn an ASL object
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          SimpleDemosCreateObject_Example

Namespace:  SimpleDemos
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class CreateObject_Example : MonoBehaviour

The CreateObject_Example type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberCreateObject_Example
Public methodCreateObject_Example
Initializes a new instance of the CreateObject_Example class
Top
Methods
  NameDescription
Public methodStatic memberClaimRecoveryFunction
A function that is called when an ASL object's claim is rejected. This function can be set to be called upon object creation.
Public methodStatic memberMyFloatsFunction
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.
Private methodStart
Initialize values
Private methodUpdate
Scene Logic
Public methodStatic memberWhatToDoWithMyGameObjectNowThatItIsCreated
This function is how you get a handle to the object you just created
Public methodStatic memberWhatToDoWithMyOtherGameObjectNowThatItIsCreated
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
Top
Fields
  NameDescription
Public fieldm_CreateObject
The object type that will be created
Private fieldStatic memberm_HandleToFreshObjects
Handle to the latest Full Prefab object created
Private fieldm_RotationHolder
Holds the rotation of our object so it gets updated properly - see Transform example for better explanation
Public fieldm_SpawnObject
Toggle for creating an object
Top
See Also