{"action":"created","issue":{"url":"https://api.github.com/repos/consulo/consulo-csharp/issues/421","repository_url":"https://api.github.com/repos/consulo/consulo-csharp","labels_url":"https://api.github.com/repos/consulo/consulo-csharp/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/consulo/consulo-csharp/issues/421/comments","events_url":"https://api.github.com/repos/consulo/consulo-csharp/issues/421/events","html_url":"https://github.com/consulo/consulo-csharp/issues/421","id":154722553,"number":421,"title":"Function not resolved inside compiler tags","user":{"login":"winalex","id":689092,"avatar_url":"https://avatars.githubusercontent.com/u/689092?v=3","gravatar_id":"","url":"https://api.github.com/users/winalex","html_url":"https://github.com/winalex","followers_url":"https://api.github.com/users/winalex/followers","following_url":"https://api.github.com/users/winalex/following{/other_user}","gists_url":"https://api.github.com/users/winalex/gists{/gist_id}","starred_url":"https://api.github.com/users/winalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winalex/subscriptions","organizations_url":"https://api.github.com/users/winalex/orgs","repos_url":"https://api.github.com/users/winalex/repos","events_url":"https://api.github.com/users/winalex/events{/privacy}","received_events_url":"https://api.github.com/users/winalex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/consulo/consulo-csharp/labels/prio:%20normal","name":"prio: normal","color":"009800"},{"url":"https://api.github.com/repos/consulo/consulo-csharp/labels/subsystem:%20resolving","name":"subsystem: resolving","color":"006b75"},{"url":"https://api.github.com/repos/consulo/consulo-csharp/labels/type:%20bug","name":"type: bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-13T14:19:14Z","updated_at":"2016-05-13T15:18:37Z","closed_at":null,"body":"<img width=\"1440\" alt=\"screen shot 2016-05-13 at 4 14 50 pm\" src=\"https://cloud.githubusercontent.com/assets/689092/15250674/22c33dc4-1926-11e6-8ece-f464a3a85f42.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/consulo/consulo-csharp/issues/comments/219074133","html_url":"https://github.com/consulo/consulo-csharp/issues/421#issuecomment-219074133","issue_url":"https://api.github.com/repos/consulo/consulo-csharp/issues/421","id":219074133,"user":{"login":"winalex","id":689092,"avatar_url":"https://avatars.githubusercontent.com/u/689092?v=3","gravatar_id":"","url":"https://api.github.com/users/winalex","html_url":"https://github.com/winalex","followers_url":"https://api.github.com/users/winalex/followers","following_url":"https://api.github.com/users/winalex/following{/other_user}","gists_url":"https://api.github.com/users/winalex/gists{/gist_id}","starred_url":"https://api.github.com/users/winalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winalex/subscriptions","organizations_url":"https://api.github.com/users/winalex/orgs","repos_url":"https://api.github.com/users/winalex/repos","events_url":"https://api.github.com/users/winalex/events{/privacy}","received_events_url":"https://api.github.com/users/winalex/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T15:18:37Z","updated_at":"2016-05-13T15:18:37Z","body":"`UnityEngine;\r\n\r\n\r\n#if UNITY_EDITOR\r\nusing System;\r\nusing UnityEditor.Animations;\r\nusing UnityEngine.Experimental.Director;\r\n\r\n#endif\r\n\r\n\r\n    public class RuntimeBlendTree{\r\n        public int index0;\r\n        public int index1;\r\n    }\r\n\r\n    public class RuntimeChildMotion{\r\n       public int threshold;\r\n      public  Motion motion;\r\n    }\r\n\r\n\r\n    /// <summary>\r\n    ///!!! It is expected for now children to be sorted by threshold in 1D blend type\r\n    /// </summary>\r\n    public class TempComponent : MonoBehaviour {\r\n\r\n        //\r\n        // FIELDS\r\n        //\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n#if UNITY_EDITOR\r\n\r\n        BlendTree _prevBlendTree;\r\n         #endif\r\n\r\n\r\n        public RuntimeBlendTree runtimeBlendTree;\r\n\r\n\r\n\r\n\r\n        AnimationMixerPlayable _animationMixerPlayable;\r\n        int _numParameters;\r\n        float[] _weights;\r\n\r\n\r\n\r\n#if UNITY_EDITOR\r\n\r\n        Vector2 zero=Vector2.zero;\r\n\r\n\r\n        int CompareRuntimeChildMotion(ChildMotion x, ChildMotion y){\r\n            if(x.threshold>y.threshold)\r\n                return 1;\r\n            else if(x.threshold<y.threshold)\r\n                return -1;\r\n\r\n            return 0;\r\n        }\r\n\r\n\r\n        int ProcessBlendTreeAsset(BlendTree blendTree, RuntimeBlendTree runtimeBlendTree, int index) {\r\n\r\n            ChildMotion[] children = blendTree.children;\r\n\r\n\r\n                    Array.Sort(children, CompareRuntimeChildMotion);\r\n                    \r\n            return index;\r\n        }\r\n\r\n#endif\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n}`"}}