Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

how to load animationclips from one fbx

Discussion in 'Addressables' started by wang37921, Sep 12, 2019.

  1. wang37921

    wang37921

    Joined:
    Aug 1, 2014
    Posts:
    84
    upload_2019-9-12_17-34-29.png

    split imported animation into three animation clips.
    I tried load them:
    Code (CSharp):
    1.             Addressables.LoadAssetsAsync<AnimationClip>("test", null).Completed += handle => {
    2.                 for (int i = 0; i < handle.Result.Count; i++)
    3.                 {
    4.                     var clip = handle.Result[i];
    5.                     Debug.Log($"clip: {clip.name}");
    6.                 }
    7.             };
    I want all the split clips, but only the 'attack' clip in the result.
     
unityunity