Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): set version to 2.9.0 [skip ci]
## [2.9.0](v2.8.0...v2.9.0) (2023-03-28) #### Features * **Extension:** provide alternative method for isActiveAndEnabled ([2abbbf4](2abbbf4)) > It would seem that the behaviour.isActiveAndEnabled property does not always return what is expected. If a GameObject is active and the behaviour is enabled then isActiveAndEnabled can still return false whilst in the OnEnable state. > > It would seem that isActiveAndEnabled does not return true until all of the relevant initial Unity moments have passed for an Object. > > To counter this, a new BehaviourExtension has been added called `CheckIsActiveAndEnabled()` that will do an absolute check on the GameObject active state and the behaviour enabled state. > > If the old isActiveAndEnabled check is still required then it can be switched to by a scripting define symbol of: > > `ZINNIA_USE_ISACTIVEANDENABLED` > > All of the relevant files that use `isActiveAndEnabled` have now been updated to use the new `CheckIsActiveAndEnabled()` extension method. * **Tracking:** use current property value to set passthrough mode ([d20e1ca](d20e1ca)) > The new SetPassThrough method will simply call the relevant passthrough method based on the current PassThroughCameraEnabled value. > > This is useful if the passthrough camera has turned off due to application pause and needs returning back on when the app is unpaused.
- Loading branch information