Show / Hide Table of Contents

Class HubModelDeserializer

Deserialize downloaded model

Inheritance
Object
HubModelDeserializer
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Pixiv.VroidSdk.Api.Legacy
Assembly: VRoidSDK.dll
Syntax
[Obsolete("HubModelDeserializer is deprecated. Please use ModelLoader")]
public class HubModelDeserializer

Properties

Instance

Extract singleton object

Declaration
public static HubModelDeserializer Instance { get; }
Property Value
Type Description
HubModelDeserializer

Methods

Initialize(IDownloadLicensePublishable, ISdkConfig)

Initialize

Declaration
public void Initialize(IDownloadLicensePublishable api, ISdkConfig config)
Parameters
Type Name Description
IDownloadLicensePublishable api

Download

ISdkConfig config

Settings for using VRoid SDK

LoadCharacterAsync(CharacterModel, HubModelDeserializerOption, Action<GameObject>, Action<Single>, Action<Exception>)

Load character asynchronously

Declaration
public void LoadCharacterAsync(CharacterModel characterModel, HubModelDeserializerOption option, Action<GameObject> onLoadComplete, Action<float> onDownloadProgress, Action<Exception> onError)
Parameters
Type Name Description
CharacterModel characterModel

Model to load

HubModelDeserializerOption option

Loading option

Action<GameObject> onLoadComplete

Load completion callback

Action<Single> onDownloadProgress

Callback on download progress

Action<Exception> onError

Failure callback

Exceptions
Type Condition
Exception

HubModelDeserializer is not initialized

LoadCharacterAsync(CharacterModel, String, Action<GameObject>, Action<Single>, Action<Exception>)

Load character asynchronously

Declaration
public void LoadCharacterAsync(CharacterModel characterModel, string encryptPassword, Action<GameObject> onLoadComplete, Action<float> onDownloadProgress, Action<Exception> onError)
Parameters
Type Name Description
CharacterModel characterModel

Model to load

String encryptPassword

Application-specific string to preserve model

Action<GameObject> onLoadComplete

Load completion callback

Action<Single> onDownloadProgress

Callback on download progress

Action<Exception> onError

Failure callback

Exceptions
Type Condition
Exception

HubModelDeserializer is not initialized

In This Article
Back to top Generated by DocFX