Auki::ConjureKit::Odal::IOdal
Inherited by Auki.ConjureKit.Odal.Odal
Public Functions
Name | |
---|---|
void | Instantiate(string assetId, Entity entity, Action onComplete, Action< string > onError) Sends a request to instantiate an asset. |
GameObject | GetUnmanagedGameObject(uint entityId) Gets the GameObject of the AssetInstance attached to the Entity. |
List< AnimationClip > | GetAnimationClips(string assetId) Gets a list of all AnimationClips attached to a given asset. |
void | Animate(Entity entity, string clipName, AnimationAction actionType =AnimationAction.PLAY, AnimationMode wrapMode =AnimationMode.LOOP) Sends a request to run an animation on the asset attached to an Entity. |
List< AssetInstance > | GetParticipantAssetInstances(uint participantId) Gets a list of AssetInstances owned by a given Participant. |
void | SetRenderParticipants(bool render) Sets if the asset attached to a Participant Entity should be visible or not. |
Public Functions Documentation
function Instantiate
void Instantiate(
string assetId,
Entity entity,
Action onComplete,
Action< string > onError
)
Sends a request to instantiate an asset.
Parameters:
- assetId Asset id
- entity Entity to which the asset will be attached to
- onComplete Callback when the Asset has been instantiated with an argument the AssetInstance id
- onError Callback when the instantiation failed
function GetUnmanagedGameObject
GameObject GetUnmanagedGameObject(
uint entityId
)
Gets the GameObject of the AssetInstance attached to the Entity.
Parameters:
- entityId Entity id
Return: GameObject of the AssetInstance or null
if there is none
function GetAnimationClips
List< AnimationClip > GetAnimationClips(
string assetId
)
Gets a list of all AnimationClips attached to a given asset.
Parameters:
- assetId Asset id
Return: A list of AnimationClips or null
if there are no clips or if the asset for this id was not found
function Animate
void Animate(
Entity entity,
string clipName,
AnimationAction actionType =AnimationAction.PLAY,
AnimationMode wrapMode =AnimationMode.LOOP
)
Sends a request to run an animation on the asset attached to an Entity.
Parameters:
- entity Entity with attached asset that we want to animate
- clipName Animation clip name
- wrapMode Animation wrap mode
function GetParticipantAssetInstances
List< AssetInstance > GetParticipantAssetInstances(
uint participantId
)
Gets a list of AssetInstances owned by a given Participant.
Parameters:
- participantId Participant id
Return: List of 0 or more AssetInstances owned by the Participant
function SetRenderParticipants
void SetRenderParticipants(
bool render
)
Sets if the asset attached to a Participant Entity should be visible or not.
Parameters:
- render
true
if the assets should be visible,false
if they should be hidden