The purpose of this case is to test the interaction between the MainGraph and the SubGraph. If there is only one BehaviorGraph Instance the case is executed correctly.
But if there are multiple Instances, such as 2, an unexpected situation will occur. The specific steps are:
- Select Cube1 and check Blackboard Variables.Rotate in the Inspector panel. This means that Cube1 will rotate 180 degrees along the Y axis within 2 seconds
- Select Cube2 and check Blackboard Variables.Rotate in the Inspector panel. This means that Cube2 will rotate 360 degrees along the X axis within 4 seconds
- Select Cube1 again and find that the Blackboard Variables of Cube1 are overwritten by the Blackboard Variables of Cube2
t
import this package,you can run it in your project.(install com.unity.behavior@1.0.6 first)
LearnSubGraph01.unitypackage (37.4 KB)