Class HubModelDeserializer
ダウンロードしたモデルをデシリアライズする
Inherited Members
Namespace: Pixiv.VroidSdk.Api.Legacy
Assembly: VRoidSDK.dll
Syntax
[Obsolete("HubModelDeserializer is deprecated. Please use ModelLoader")]
public class HubModelDeserializer
Properties
Instance
シングルトンオブジェクトを取り出す
Declaration
public static HubModelDeserializer Instance { get; }
Property Value
Type | Description |
---|---|
HubModelDeserializer |
Methods
Initialize(IDownloadLicensePublishable, ISdkConfig)
初期化
Declaration
public void Initialize(IDownloadLicensePublishable api, ISdkConfig config)
Parameters
Type | Name | Description |
---|---|---|
IDownloadLicensePublishable | api | ダウンロード |
ISdkConfig | config | VRoid SDKを利用するための設定 |
LoadCharacterAsync(CharacterModel, HubModelDeserializerOption, Action<GameObject>, Action<Single>, Action<Exception>)
キャラクターを非同期的に読み込む
Declaration
public void LoadCharacterAsync(CharacterModel characterModel, HubModelDeserializerOption option, Action<GameObject> onLoadComplete, Action<float> onDownloadProgress, Action<Exception> onError)
Parameters
Type | Name | Description |
---|---|---|
CharacterModel | characterModel | 読み込むモデル |
HubModelDeserializerOption | option | 読み込みオプション |
Action<GameObject> | onLoadComplete | 読み込み完了コールバック |
Action<Single> | onDownloadProgress | ダウンロード進捗コールバック |
Action<Exception> | onError | 失敗コールバック |
Exceptions
Type | Condition |
---|---|
Exception | HubModelDeserializerを初期化していない |
LoadCharacterAsync(CharacterModel, String, Action<GameObject>, Action<Single>, Action<Exception>)
キャラクターを非同期的に読み込む
Declaration
public void LoadCharacterAsync(CharacterModel characterModel, string encryptPassword, Action<GameObject> onLoadComplete, Action<float> onDownloadProgress, Action<Exception> onError)
Parameters
Type | Name | Description |
---|---|---|
CharacterModel | characterModel | 読み込むモデル |
String | encryptPassword | モデル保護のためのアプリケーション固有の文字列 |
Action<GameObject> | onLoadComplete | 読み込み完了コールバック |
Action<Single> | onDownloadProgress | ダウンロード進捗コールバック |
Action<Exception> | onError | 失敗コールバック |
Exceptions
Type | Condition |
---|---|
Exception | HubModelDeserializerを初期化していない |