GameLiftManagerGameController Class |
Namespace: ASL
The GameLiftManagerGameController type exposes the following members.
Name | Description | |
---|---|---|
GameLiftManagerGameController | Initializes a new instance of the GameLiftManagerGameController class |
Name | Description | |
---|---|---|
AllClientsFinishedResolvingCloudAnchor |
Is called when all clients have finished resolving a cloud anchor
| |
ConvertByteArrayIntoBool |
Converts a byte array into a boolean variable
| |
ConvertByteArrayIntoFloatArray |
Converts a byte array into a float array
| |
ConvertByteArrayIntoInt |
Converts a byte array into an int
| |
ConvertByteArrayIntoString |
Converts a byte array into a string
| |
ConvertByteArrayIntoVector |
Converts a byte array into a vector3 or 4 depending on the vector size sent
| |
ConvertFloatArrayIntoVector3Array |
Converts a float array into a vector3 array
| |
DataLengthsAndStartLocations |
Gathers the length and start location of the data inside a byte array
| |
DeleteObject |
Destroys an ASL Object based upon its ID. This function is triggered by a packet received from the relay server.
| |
GetDataCount |
Gets the amount of data pieces in a byte array by looking at the first number in the byte array
| |
GetDataLengths |
The data lengths of each data piece in the byte array
| |
GetPartOfByteArray |
Returns the specified part of a byte array without converting it into anything else
| |
GetStartLocations |
Gets the start locations of the data pieces in the byte array
| |
IncrementLocalPosition |
Updates the local transform of an ASL Object based upon its ID by taking the value passed and adding it to the current localPosition value.
This function is triggered by a packet received from the relay server.
| |
IncrementLocalRotation |
Updates the local rotation of an ASL Object based upon its ID. This function is triggered by a packet received from the relay server.
| |
IncrementLocalScale |
Updates the local scale of an ASL Object based upon its ID by taking the value passed in and adding it to the current localScale value.
This function is triggered by a packet received from the relay server.
| |
IncrementWorldPosition |
Updates the world transform of an ASL Object based upon its ID by taking the value passed and adding it to the current localPosition value.
This function is triggered by a packet received from the relay server.
| |
IncrementWorldRotation |
Updates the world rotation of an ASL Object based upon its ID. This function is triggered by a packet received from the relay server.
| |
IncrementWorldScale |
Updates the world scale of an ASL Object based upon its ID by taking the value passed in and adding it to the current scale value
by setting its parent to null and then reassigning its parent after setting the scale you want it to have. This function
is triggered by a packet received from the relay server.
| |
InitializeStartObject |
Upon game start, any ASL Objects in the scene do not have synchronized IDs. This function changes their ID to be synced with other clients
| |
ObjectClaimReceived |
Get the claim to an object that was previously owned by another player. This function is triggered by a packet received from the relay server.
| |
ReceiveARPlaneAsMesh |
Is called when someone sends an AR Plane's vertices. This transforms the byte[] of the float[] of
vertices of the sent Mesh into a Vector3[] to create a Mesh from.
| |
RecieveTexture2D |
Is called when someone sends a Texture2D. This transforms the byte[] of the Texture2D into a Texture2D and calls the function associated with
this sent Texture2D if one exists and async start is enabled. If sync start is enabled instead, then it informs the relay server that is has successfully recreated
the image and is ready to execute its function.
| |
RejectClaim |
Reject a player's claim request on an ASL Object. This function is triggered by a packet received from the relay server.
| |
ReleaseClaimedObject |
Releases an object so another user can claim it. This function will also call this object's release function if it exists.
This function is triggered by a packet received from the relay server.
| |
ResolveAnchorId |
Packet informing user to start trying to resolve a cloud anchor
| |
SentFloats |
Pass in the float value(s) from the relay server to a function of the user's choice (delegate function). The function that uses these float(s) is determined
by the user by setting the ASL Object of choosing's m_FloatCallback function to their own personal function. This function is triggered by a packet received from the relay server.
Remember, though the user can pass in a float array, the max size of this array is 4 because we send it via a Vector4 due to GameSpark constraints
| |
SetAnchorID |
Updates the Anchor Point of an ASL Object based upon its ID. The anchor point is used for AR applications.
This function is triggered by a packet received from the relay server.
| |
SetLocalPosition |
Updates the local transform of an ASL Object based upon its ID. This function is triggered by a packet received from the relay server.
| |
SetLocalRotation |
Updates the local rotation of an ASL Object based upon its ID. This function is triggered by a packet received from the relay server.
| |
SetLocalScale |
Updates the local scale of an ASL Object based upon its ID. This function is triggered by a packet received from the relay server.
| |
SetObjectClaim |
Finds and claims a specified object and updates everybody's permission for that object. This function is triggered by a packet received from the relay server.
| |
SetObjectColor |
Sets the object specified by the id contained in _packet to the color specified in _packet. This function is triggered by a packet received from the relay server.
| |
SetObjectID |
Looks for and assigns any ASLObjects that do not have a unique ID yet. This ID is given through the relay server.
This function is triggered by a packet received from the relay server. This function will keep the time scale at 0 until all ASL objects have a proper ID
| |
SetObjectTag |
Updates the tag of an ASL Object based upon its ID. Remember that this tag must be defined by all players.
This function is triggered by a packet received from the relay server.
| |
SetParent |
Sets an object's parent based upon that object's ID or name. Preferably ID as it's a lot faster
| |
SetupSynchronizingASLObjectScreen |
Used to setup the canvas screen that informs users that ASL objects are syncing
| |
SetWorldPosition |
Updates the world position of an ASL Object based upon its ID. This function is triggered by a packet received from the relay server.
| |
SetWorldRotation |
Updates the world rotation of an ASL Object based upon its ID. This function is triggered by a packet received from the relay server.
| |
SetWorldScale |
Updates the world scale of an ASL Object based upon its ID by setting its parent to null and then
reassigning its parent after setting the scale you want it to have. This function is triggered by a
packet received from the relay server.
| |
SpawnPrefab |
This function spawns a prefab object with ASL attached as a component. This function is triggered by a packet received from the relay server.
| |
SpawnPrimitive |
This function spawns a primitive object with ASL attached as a component. This function is triggered by a packet received from the relay server.
| |
Start |
Start function that states any scene loaded will call the SyncronizeId function, ensuring all ASL objects are synced upon scene loads
| |
SyncronizeID |
Find all ASL Objects in the scene and have the relay server create a unique ID for them as well as add this object to our ASLObject dictionary
This function is triggered when this script is first loaded. This function will keep the timeScale at 0 until all objects have been ID.
All objects are ID in the SetObjectID(RTPacket _packet) function.
| |
TriangulateMesh |
Triangulates Mesh based on vertices.
|
Name | Description | |
---|---|---|
awaitingInstantiation | ||
m_ObjectIDAssignedCount | Used to count how many objects have been assigned an ID yet | |
m_PauseCanvas | The pause canvas that is shown while waiting for objects to be synced | |
m_PauseText | The pause text that is shown while waiting for objects to be synced | |
ReceivedTexture2Ds |
Dictionary containing the received Texture2Ds that are being rebuilt as new packets come in.
|