LoginSignup
1

More than 5 years have passed since last update.

UnityでLive2Dのモデルを1行で取得して1行でモーションを再生させる

Posted at

以前、こちらにも載せていましたが、SampleApp1でなら、以下のようにすれば他のゲームオブジェクトからでもmodelを取得して、モーションを再生できます。

C#
var model = GameObject.Find("Live2D_Canvas_Haru").GetComponent<LAppModelProxy>().GetModel(); 
model.StartRandomMotion(LAppDefine.MOTION_GROUP_TAP_BODY, LAppDefine.PRIORITY_NORMAL);

以上です

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1