Disable Task from script?

abc123

Member
You can disable any task in a tree by clicking the small 'x' button. After that, it stops calling updates. But I can't find a way to do it from script, is it possible? If not, what is proper way to disable/delete task completely at runtime?

111.PNG
 
My bad, dunno how I missed it o_O This thread can be deleted.

C#:
        public override void OnAwake()
        {
            base.OnAwake();

            Disabled = true;
        }
 
Top