public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.AnimationTriggers o;
         o=new UnityEngine.UI.AnimationTriggers();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.AnimationTriggers o;
         o=new UnityEngine.UI.AnimationTriggers();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
    static int get_animationTriggers(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Selectable        obj = (UnityEngine.UI.Selectable)o;
            UnityEngine.UI.AnimationTriggers ret = obj.animationTriggers;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index animationTriggers on a nil value" : e.Message));
        }
    }
    static int set_animationTriggers(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.Selectable        obj  = (UnityEngine.UI.Selectable)o;
            UnityEngine.UI.AnimationTriggers arg0 = (UnityEngine.UI.AnimationTriggers)ToLua.CheckObject <UnityEngine.UI.AnimationTriggers>(L, 2);
            obj.animationTriggers = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index animationTriggers on a nil value"));
        }
    }
 static public int get_disabledTrigger(IntPtr l)
 {
     UnityEngine.UI.AnimationTriggers o = (UnityEngine.UI.AnimationTriggers)checkSelf(l);
     pushValue(l, o.disabledTrigger);
     return(1);
 }
        private static AnimatorController GenerateSelectableAnimatorContoller(AnimationTriggers animationTriggers, Selectable target)
        {
            if (target == null)
                return null;

            // Where should we create the controller?
            var path = GetSaveControllerPath(target);
            if (string.IsNullOrEmpty(path))
                return null;

            // figure out clip names
            var normalName = string.IsNullOrEmpty(animationTriggers.normalTrigger) ? "Normal" : animationTriggers.normalTrigger;
            var highlightedName = string.IsNullOrEmpty(animationTriggers.highlightedTrigger) ? "Highlighted" : animationTriggers.highlightedTrigger;
            var pressedName = string.IsNullOrEmpty(animationTriggers.pressedTrigger) ? "Pressed" : animationTriggers.pressedTrigger;
            var disabledName = string.IsNullOrEmpty(animationTriggers.disabledTrigger) ? "Disabled" : animationTriggers.disabledTrigger;

            // Create controller and hook up transitions.
            var controller = AnimatorController.CreateAnimatorControllerAtPath(path);

            GenerateTriggerableTransition(normalName, controller);
            GenerateTriggerableTransition(highlightedName, controller);
            GenerateTriggerableTransition(pressedName, controller);
            GenerateTriggerableTransition(disabledName, controller);

            return controller;
        }
 private static AnimatorController GenerateSelectableAnimatorContoller(AnimationTriggers animationTriggers, Selectable target)
 {
   if ((UnityEngine.Object) target == (UnityEngine.Object) null)
     return (AnimatorController) null;
   string saveControllerPath = SelectableEditor.GetSaveControllerPath(target);
   if (string.IsNullOrEmpty(saveControllerPath))
     return (AnimatorController) null;
   string name1 = !string.IsNullOrEmpty(animationTriggers.normalTrigger) ? animationTriggers.normalTrigger : "Normal";
   string name2 = !string.IsNullOrEmpty(animationTriggers.highlightedTrigger) ? animationTriggers.highlightedTrigger : "Highlighted";
   string name3 = !string.IsNullOrEmpty(animationTriggers.pressedTrigger) ? animationTriggers.pressedTrigger : "Pressed";
   string name4 = !string.IsNullOrEmpty(animationTriggers.disabledTrigger) ? animationTriggers.disabledTrigger : "Disabled";
   AnimatorController controllerAtPath = AnimatorController.CreateAnimatorControllerAtPath(saveControllerPath);
   SelectableEditor.GenerateTriggerableTransition(name1, controllerAtPath);
   SelectableEditor.GenerateTriggerableTransition(name2, controllerAtPath);
   SelectableEditor.GenerateTriggerableTransition(name3, controllerAtPath);
   SelectableEditor.GenerateTriggerableTransition(name4, controllerAtPath);
   AssetDatabase.ImportAsset(saveControllerPath);
   return controllerAtPath;
 }