Click or drag to resize

ASLHelper Class

Provides functions pertaining to ASL to be called by the user but not linked to any specific object. Not that AR uses AR Foundation which is through Unity but that AR Foundation uses Google's ARCore SDK.

https://codelabs.developers.google.com/codelabs/arcore-cloud-anchors/index.html#4

https://developers.google.com/ar/develop/developer-guides/anchors

https://developers.google.com/ar/develop/unity/cloud-anchors/quickstart-unity-android

https://developers.google.com/ar/develop/unity/cloud-anchors/overview-unity

Inheritance Hierarchy
SystemObject
  ASLASLHelper

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public static class ASLHelper

The ASLHelper type exposes the following members.

Constructors
  NameDescription
Private methodStatic memberASLHelper
Top
Methods
  NameDescription
Public methodStatic memberCreateARCoreCloudAnchor
Creates an ARCore Cloud Anchor at the location the user tapped and passed into it. This function can be used to set the world origin or just a normal cloud anchor. It is advisable to only have 1 user in your application set cloud anchors.
Public methodStatic memberCode exampleInstantiateASLObject(PrimitiveType, Vector3, Quaternion)
Create an ASL Object
Public methodStatic memberCode exampleInstantiateASLObject(String, Vector3, Quaternion)
Create an ASL Object - make sure the prefab you are using to create this ASLObject with does NOT already have an ASL script attached to it and that it exists on all user's devices (that it can be found on all devices)
Public methodStatic memberCode exampleInstantiateASLObject(PrimitiveType, Vector3, Quaternion, String)
Create an ASL Object
Public methodStatic memberCode exampleInstantiateASLObject(String, Vector3, Quaternion, String)
Create an ASL Object - make sure the prefab you are using to create this ASLObject with does NOT already have an ASL script attached to it and that it exists on all user's devices (that it can be found on all devices)
Public methodStatic memberCode exampleInstantiateASLObject(PrimitiveType, Vector3, Quaternion, String, String)
Create an ASL Object
Public methodStatic memberCode exampleInstantiateASLObject(String, Vector3, Quaternion, String, String)
Create an ASL Object - make sure the prefab you are using to create this ASLObject with does NOT already have an ASL script attached to it and that it exists on all user's devices (that it can be found on all devices)
Public methodStatic memberCode exampleInstantiateASLObject(PrimitiveType, Vector3, Quaternion, String, String, ASLObjectASLGameObjectCreatedCallback)
Create an ASL Object
Public methodStatic memberCode exampleInstantiateASLObject(String, Vector3, Quaternion, String, String, ASLObjectASLGameObjectCreatedCallback)
Create an ASL Object - make sure the prefab you are using to create this ASLObject with does NOT already have an ASL script attached to it and that it exists on all user's devices (that it can be found on all devices)
Public methodStatic memberCode exampleInstantiateASLObject(PrimitiveType, Vector3, Quaternion, String, String, ASLObjectASLGameObjectCreatedCallback, ASLObjectClaimCancelledRecoveryCallback)
Create an ASL Object
Public methodStatic memberCode exampleInstantiateASLObject(String, Vector3, Quaternion, String, String, ASLObjectASLGameObjectCreatedCallback, ASLObjectClaimCancelledRecoveryCallback)
Create an ASL Object - make sure the prefab you are using to create this ASLObject with does NOT already have an ASL script attached to it and that it exists on all user's devices (that it can be found on all devices)
Public methodStatic memberCode exampleInstantiateASLObject(PrimitiveType, Vector3, Quaternion, String, String, ASLObjectASLGameObjectCreatedCallback, ASLObjectClaimCancelledRecoveryCallback, ASLObjectFloatCallback)
Create an ASL Object
Public methodStatic memberCode exampleInstantiateASLObject(String, Vector3, Quaternion, String, String, ASLObjectASLGameObjectCreatedCallback, ASLObjectClaimCancelledRecoveryCallback, ASLObjectFloatCallback)
Create an ASL Object - make sure the prefab you are using to create this ASLObject with does NOT already have an ASL script attached to it and that it exists on all user's devices (that it can be found on all devices)
Public methodStatic memberInstantiateASLObjectReturnID(String, Vector3, Quaternion)
Public methodStatic memberInstantiateASLObjectReturnID(String, Vector3, Quaternion, String, String, ASLObjectASLGameObjectCreatedCallback, ASLObjectClaimCancelledRecoveryCallback, ASLObjectFloatCallback)
Public methodStatic memberIterateOverChildObjects
Public methodStatic memberCode exampleSendAndSetNewScene
Change scene for all players. This function is called by a user.
Private methodStatic memberSendSpawnPrefab
Sends a packet out to all players to spawn a prefab object
Private methodStatic memberSendSpawnPrimitive
Sends a packet out to all players to spawn an object based upon a prefab
Private methodStatic memberTestSendSpawnPrefab
Top
Fields
  NameDescription
Public fieldStatic memberm_ASLObjects
A dictionary containing all of the ASLObjects in a scene
Public fieldStatic memberm_CloudAnchors
A dictionary containing all of the Cloud Anchors in a scene
Top
See Also

Reference