コード例 #1
0
 /// <summary>
 /// Loads the Out Animations Preset that is set to load at runtime.
 /// </summary>
 void LoadRuntimeOutAnimationsPreset()
 {
     if (loadOutAnimationsPresetAtRuntime)
     {
         Anim presetAnimation = UIAnimatorUtil.GetOutAnim(outAnimationsPresetCategoryName, outAnimationsPresetName);
         if (presetAnimation != null)
         {
             outAnimations = presetAnimation.Copy();
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Loads the In Animations Preset that is set to load at runtime.
 /// </summary>
 void LoadRuntimeInAnimationsPreset()
 {
     if (loadInAnimationsPresetAtRuntime)
     {
         Anim presetAnimation = UIAnimatorUtil.GetInAnim(inAnimationsPresetCategoryName, inAnimationsPresetName);
         if (presetAnimation != null)
         {
             inAnimations = presetAnimation.Copy();
         }
     }
 }