Update to Cubism 5 SDK for Web R1 beta1
This commit is contained in:
@ -9,7 +9,7 @@ import { CubismIdHandle } from '../id/cubismid';
|
||||
import { CubismFramework } from '../live2dcubismframework';
|
||||
import {
|
||||
CubismBlendMode,
|
||||
CubismTextureColor,
|
||||
CubismTextureColor
|
||||
} from '../rendering/cubismrenderer';
|
||||
import { csmMap } from '../type/csmmap';
|
||||
import { csmVector } from '../type/csmvector';
|
||||
@ -846,6 +846,18 @@ export class CubismModel {
|
||||
return this._model.parameters.defaultValues[parameterIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定したパラメータindexのIDを取得
|
||||
*
|
||||
* @param parameterIndex パラメータのインデックス
|
||||
* @returns パラメータID
|
||||
*/
|
||||
public getParameterId(parameterIndex: number): CubismIdHandle {
|
||||
return CubismFramework.getIdManager().getId(
|
||||
this._model.parameters.ids[parameterIndex]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* パラメータの値の取得
|
||||
* @param parameterIndex パラメータのインデックス
|
||||
|
Reference in New Issue
Block a user