1. Create an empty bound FSM.
2. Create an Action node.
3. Create a new ActionTask:
1
2
3
4
5
6
7
publicclassTestActionTask:ActionTask<Transform>
{
[BlackboardOnly]
publicBBParameter<Transform>t;
}
4. Add Test Action Task to the Action node.
5. While the node inspector GUI is still open, switch back to the code editor.
6. Modify TestActionTask to look like this:
1
2
3
4
5
6
7
8
9
10
publicclassTestActionTask:ActionTask<Transform>
{
[BlackboardOnly]
publicBBParameter<Transform>t;
[BlackboardOnly]
publicBBParameter<GameObject>go;
}
7. Tab back to Unity and wait for recompiliation.
8. Results look like screenshot attached.
Attachments:
Screen-Shot-2020-05-03-at-3.38.13-PM.png
Login
Register
By registering on this website you agree to our Privacy Policy.