A alexkarak New member May 16, 2020 #1 Hey...is it possible to call a function i have in a script from a behaviour tree?
A abc123 Member May 16, 2020 #2 If your function is in MonoBehaviour, you can use "Send Message" task, which does this: https://docs.unity3d.com/ScriptReference/GameObject.SendMessage.html There is also "Invoke Method" task, which will call selected public method on a selected component. Or you can write your own more specific Task. Last edited: May 16, 2020
If your function is in MonoBehaviour, you can use "Send Message" task, which does this: https://docs.unity3d.com/ScriptReference/GameObject.SendMessage.html There is also "Invoke Method" task, which will call selected public method on a selected component. Or you can write your own more specific Task.