Custom Bounds

Many components in TutorialMAX determine bounds of certain objects. For instance, highlighters would determine the bounds of the object to highlight; just like many transform and bounds modifiers.

Here's how it works:

  • Renderers: If there's any component defined on the target GameObject deriving from Renderer, its bounds property will be used.
  • Colliders: If there's any component defined on the target GameObject deriving from Collider, its bounds property will be used.
  • RectTransforms: This is there to support objects on canvas.
  • Custom Contract: If there's any component implementing the ITutorialBoundsProvider interface, it will be used. A component that implements this interface is always prioritized over other possibilities.
You can easily define the bounds manually by adding the TutorialCustomBounds component.