-
Notifications
You must be signed in to change notification settings - Fork 6
GameObject Overrides
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.
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.