Skip to main content

InworldCharacterData

This file contains data for an Inworld character received from the Inworld server. It includes the agent ID, thumbnail, and other assets.

Classes

InworldCharacterData

Module: Inworld.AI. Namespace: Inworld.Entities.

VariablesDescription
agentIdThe live session ID of the character. It's generated after LoadScene is completed, and it changes each time this variable is updated.
brainNameThe unique full name of the character in the format, workspace/xxx/characters/yyy
givenNameThe character's display name, such as John
characterAssetsThe CharacterAssets associated with the character.
thumbnailThe character's thumbnail image.
PropertiesDescription
CharacterFileNameGet the file name stored in the Assets folder, formatted as {BrainName}_{WorkspaceName}
FunctionsDescriptionParameters
UpdateThumbnailUsed to update thumbnail of that character in the runtime.

CharacterName

Module: Inworld.AI. Namespace: Inworld.Entities.

VariablesDescription
nameThe brain name of the InworldCharacter.
languageCodeThe language the InworldCharacter is using. Used for multiple language support in the future.

CharacterAssets

Module: Inworld.AI. Namespace: Inworld.Entities.

VariablesDescription
rpmModelUriThe model URI for the Ready Player Me avatar. Nullable.
rpmImageUriPortraitThe portrait image URI for the Ready Player Me avatar. Nullable.
rpmImageUriPostureThe posture image URI for the Ready Player Me avatar. Nullable.
avatarImgThe character's avatar image. Nullable.
avatarImgOriginalThe reference to the original avatar image, in case it's changed. Nullable.
thumbnailProgressThe download progress of the ThumbnailURL.
avatarProgressThe download progress of the rpmModelUri.
PropertiesDescription
ProgressThe current data fetching progress of the character in general.
ThumbnailURLThe URL for the default thumbnail image.
FunctionsDescriptionParameters
IsAssetDetermine whether the target URL is one of the character's asset links.url: the target url.
CopyFromCopy the data of CharacterAssets from another instance.rhs: the CharacterAssets to copy.

CharacterDescription

Module: Inworld.AI. Namespace: Inworld.Entities.

VariablesDescription
givenNameThe display name of the character, such as John.
descriptionThe description of the character.

CharacterOverLoad

Module: Inworld.AI. Namespace: Inworld.Entities.

VariablesDescription
defaultCharacterDescriptionThe CharacterDescription of the character.
defaultCharacterAssetsThe CharacterAssets of the character.

CharacterReference

Module: Inworld.AI. Namespace: Inworld.Entities.

VariablesDescription
characterThe agentID of the character.
characterOverloadsThe list of the CharacterOverLoad. (Currently, only one element is supported, but we may add support for multiple character descriptions later.)
PropertiesDescription
ProgressThe current data fetching process of the character in general.
CharacterFileNameGet the file name stored in Assets folder. Format as {BrainName}_{WorkspaceName}