Skip to main content

InworldFileDownloader

CharacterFetchingProgress

This class is used to get data fetching progress for an InworldCharacter. It stores all the enums declared and used in this package.

Properties

PropertyTypeDescription
thumbnailProgressUnityWebRequestAsyncOperationGets the progress of the thumbnail download
avatarProgressUnityWebRequestAsyncOperationGets the progress of the avatar download
ProgressfloatGets the progress of the download as a percentage (0 to 100)

InworldFileDownloader

Inspector Variables

VariableDescription
Download ThumbnailDescribes if it downloads thumbnails
Download AvatarDescribes if it downloads avatars

Events

EventTypeDescription
OnAvatarDownloadedAction<InworldCharacterData>Triggered when .glb model downloaded
OnThumbnailDownloadedAction<InworldCharacterData>Triggered when thumbnails downloaded
OnAvatarFailedAction<InworldCharacterData>Triggered when .glb model downloading failed
OnThumbnailFailedAction<InworldCharacterData>Triggered when thumbnail downloading failed

Properties

PropertyTypeDescription
ProgressfloatGets the progress of the download as a percentage (0 to 100)

API

FunctionReturn TypeDescriptionParameters
DownloadCharacterDatavoidDownloads thumbnail and avatar of InworldCharacterData.charData: target InworldCharacterData
InitvoidClears all the current downloading requestsN/A
DownloadThumbnailvoidDownloads thumbnail of InworldCharacterDatacharData: target InworldCharacterData
DownloadAvatarvoidDownloads avatar of InworldCharacterDatacharData: target InworldCharacterData
DownloadAvatar