AvatarReady
Loading...
Searching...
No Matches
Inria.Avatar.AvatarReady.ReplayManager Class Reference
Inheritance diagram for Inria.Avatar.AvatarReady.ReplayManager:

Classes

class  AnimatedAvatar
 
class  ManagerData
 

Public Member Functions

void RemoveAvatar (AnimatedAvatar avatar)
 Remove an avatar from the manager data. Destroy the avatar target.
 
void ClearAllAvatars ()
 
AnimatedAvatar AddAvatar (string name="", string provider="", string animationName="", AvatarReadyAnimationReplayer.AnimationType animationType=AvatarReadyAnimationReplayer.AnimationType.Anim, Transform targetPosition=null)
 Add an avatar to manager data.
 
void Start ()
 
void SetupRuntimeAvatar (AnimatedAvatar avatar, UnityAction< AvatarReadySetup > Callback=null)
 Initialize an avatar at runtime with Animated avatar values.
 
void ChangeAvatar (AnimatedAvatar avatar, string newAvatarName, string provider, UnityAction Callback=null)
 Apply a new avatar to a current animated Avatar. Used for runtime avatar changes.
 
void ChangeAnimation (AnimatedAvatar avatar, string animationName, bool playAnimation=true)
 Change current animation on an avatar.
 
void OnAvatarLoaded (AnimatedAvatar avatar)
 Callback when the avatar finishes loading.
 
void PlayAllAnimations (bool fromStart=true)
 Play all current avatars.
 
void WriteJson (bool newFile=false)
 Write manager data to FilePath.
 
void WriteToJson (string path)
 Write manager data to a json file.
 
void ReadJson ()
 Load manager data from FilePath.
 
void ReadFromJson (string path)
 Load manager data from a json file at path.
 
void ReadFromResources (string path)
 Read manager data from a json file in resources folder.
 
void GetOrCreateTargetObject (AnimatedAvatar avatar)
 Try to find the target objet for an animated avatar. If none find, creates a new one.
 

Public Attributes

ManagerData managerData
 

Properties

string FilePath [get, set]
 
List< AnimatedAvatarAvatars [get]
 

Private Attributes

string filePath
 

Member Function Documentation

◆ AddAvatar()

AnimatedAvatar Inria.Avatar.AvatarReady.ReplayManager.AddAvatar ( string name = "",
string provider = "",
string animationName = "",
AvatarReadyAnimationReplayer.AnimationType animationType = AvatarReadyAnimationReplayer::AnimationType::Anim,
Transform targetPosition = null )
inline

Add an avatar to manager data.

Parameters
nameName of the asset bundle for the avatar. Default null
pathTypeType of path for the animation. Default custom
animationPathPath for the animation. Default null
animationTypeType of animation. Default .anim

◆ ChangeAvatar()

void Inria.Avatar.AvatarReady.ReplayManager.ChangeAvatar ( AnimatedAvatar avatar,
string newAvatarName,
string provider,
UnityAction Callback = null )
inline

Apply a new avatar to a current animated Avatar. Used for runtime avatar changes.

Parameters
avatar
newAvatarName

◆ ChangeAnimation()

void Inria.Avatar.AvatarReady.ReplayManager.ChangeAnimation ( AnimatedAvatar avatar,
string animationName,
bool playAnimation = true )
inline

Change current animation on an avatar.

Parameters
avatar
animationName

◆ WriteJson()

void Inria.Avatar.AvatarReady.ReplayManager.WriteJson ( bool newFile = false)
inline

Write manager data to FilePath.

Parameters
newFile

◆ ReadFromJson()

void Inria.Avatar.AvatarReady.ReplayManager.ReadFromJson ( string path)
inline

Load manager data from a json file at path.

Parameters
path

◆ ReadFromResources()

void Inria.Avatar.AvatarReady.ReplayManager.ReadFromResources ( string path)
inline

Read manager data from a json file in resources folder.

Parameters
path

The documentation for this class was generated from the following file: