Comment on page

Behaviours & Components

Prebuilt logic bundles to help you build your experiences.
Behaviours and Components are predefined containers of logic you can add to an Object. These provide a range of variables that control how an object relates to the player and other objects in the experience.
You can make an object move or stay in the same spot, appear or disappear, fight or flee, receive messages or send them, activate or deactivate.
For example, by default, an asset with the Prey Behaviour will automatically run away from an asset with the Predator Behaviour, and an asset with the Predator behaviour will, again, by default, automatically seek and attack any assets with the Prey behaviour that wanders near it.
There is a whole section of the Academy dedicated to unpacking Behaviours and Components in detail.
The important thing to remember here is that using Logic doesn’t have to be a daunting task. It is just a matter of deciding on relationships you want to establish between action and outcome, cause and effect.
At this stage, you might be thinking, “That's all very well, but how do I do that?'' Well, you are in luck, we will cover how you can apply and modify logical systems as we jump into triggers and messaging.
Last modified 2yr ago