Domains
Domains are special prefabs that are used to mark a certain area. For example, a domain can be used to check that the truck has reached a location in the Reach Location task.
- For Reach Location tasks, use the objective_domain prefab.
- For tasks where the player needs to bring resources or quest objects to the area, use the domain_resource prefab. The filters for this prefab has already been set up (you can manually delete the filters you don't need).
- For other purposes use the domain prefab.
Warning
Domains must be placed slightly lower than the ground level, otherwise the game won't track them correctly.
In order for the domain to be able to check whether something entered this domain, you need to set up the tag filter:
-
In Inspector, open the Domain > Filters > Tag list property:
-
Click + next to the Tag List property and enter the tag you want this domain to track:
Instances of the objective_domain prefab track the CurrentTruck tag by default.
You can change the size of the domain just like any other object (see Editing object controls section).