Skip to content

GameObject Overrides

BocuD edited this page Mar 2, 2022 · 2 revisions

GameObject List

GameObject overrides let you specify a list of GameObjects that should be included / excluded from a given branch by adding GameObject overrides for that branch. Any overrides added to this list will be applied anytime you switch to a different branch and whenever a build is started. GameObjects are excluded from build by disabling them and marking them as EditorOnly.

image

Exclusive vs Excluded GameObjects

When applying the GameObject states for a branch, first a list of all exclusive GameObjects across all branches is made. All GameObjects in this list are then compared to the list of exclusive GameObjects for the current branch. All GameObjects that aren't in the current branch are then excluded from build. This makes it possible to just mark a GameObject as exclusive on a single branch without specifically excluding them from other branches. Excluded GameObjects are a bit simpler in that they are simply excluded on a per branch basis.