NodeCanvas Forums › General Discussion › How are asset/unbound graphs supposed to be used? › Reply To: How are asset/unbound graphs supposed to be used?
<span style=”color: #323232; font-family: ‘Open Sans’; font-size: 12px; background-color: #fbfbfb;”>1) If the Asset Graph is directly assigned to a BTOwner, you will see all its public variables shown in the inspector of that BTOwner and possible to change; per-owner.</span>
This way (#1) is what I’m looking to do. A few questions:
1) Does the variables being “public to change” include binding them, or just getting & setting values?
2) Are these BBParameters?
3) Is there an example of this set up anywhere that I could look at? Any more info/guides/tutorials etc with this setup?
4) Currently I have set things up so that the AI agent prefab assigns the BT to the BT Owner on Start() like so:
1 2 3 4 5 6 |
<span style="font-family: 'JetBrains Mono', monospace; font-size: 13.0667px; white-space: pre; color: #9586cf;">public </span><span style="font-family: 'JetBrains Mono', monospace; font-size: 13.0667px; white-space: pre; color: #a3dea1;">BehaviourTreeOwner </span><span style="color: #c6ccd3; font-family: 'JetBrains Mono', monospace; font-size: 13.0667px; white-space: pre; font-weight: bold;">btOwner</span><span style="color: #c6ccd3; font-family: 'JetBrains Mono', monospace; font-size: 13.0667px; white-space: pre; background-color: #222629;">;</span><br style="color: #c6ccd3; font-family: 'JetBrains Mono', monospace; font-size: 13.0667px; white-space: pre;" /><span style="font-family: 'JetBrains Mono', monospace; font-size: 13.0667px; white-space: pre; color: #9586cf;">public </span><span style="font-family: 'JetBrains Mono', monospace; font-size: 13.0667px; white-space: pre; color: #a3dea1;">BehaviourTree </span><span style="color: #c6ccd3; font-family: 'JetBrains Mono', monospace; font-size: 13.0667px; white-space: pre; font-weight: bold;">behaviorTree</span><span style="color: #c6ccd3; font-family: 'JetBrains Mono', monospace; font-size: 13.0667px; white-space: pre; background-color: #222629;">;</span> <pre style="font-family: 'JetBrains Mono', monospace; color: #c6ccd3; font-size: 9.8pt;"><span style="color: #9586cf;">void </span><span style="font-weight: bold;">Start</span>() <span style="color: #4a9bf2; background-color: #383c40;">{ </span> btOwner<span style="font-size: 9.8pt;">.</span><span style="font-size: 9.8pt; color: #14b5a5;">StartBehaviour</span><span style="font-size: 9.8pt;">(</span><span style="font-size: 9.8pt; color: #20b1d2;">behaviorTree</span><span style="font-size: 9.8pt;">); </span>} |
But the way you describe in #1 doesn’t need this, right? Any code needed for that setup?
Thank you for the help!!