Update to Cubism 4 SDK for Web R5 beta3
This commit is contained in:
@ -646,11 +646,23 @@ export class CubismModel {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* 関数名が誤っていたため、代替となる getDrawableTextureIndex を追加し、この関数は非推奨となりました。
|
||||
*
|
||||
* Drawableのテクスチャインデックスリストの取得
|
||||
* @param drawableIndex Drawableのインデックス
|
||||
* @return drawableのテクスチャインデックスリスト
|
||||
*/
|
||||
public getDrawableTextureIndices(drawableIndex: number): number {
|
||||
return this.getDrawableTextureIndex(drawableIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Drawableのテクスチャインデックスの取得
|
||||
* @param drawableIndex Drawableのインデックス
|
||||
* @return drawableのテクスチャインデックス
|
||||
*/
|
||||
public getDrawableTextureIndex(drawableIndex: number): number {
|
||||
const textureIndices: Int32Array = this._model.drawables.textureIndices;
|
||||
return textureIndices[drawableIndex];
|
||||
}
|
||||
|
Reference in New Issue
Block a user