Extension: provide alternative method for isActiveAndEnabled (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)
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.
Extension: provide alternative method for isActiveAndEnabled (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)
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.
Commits
4b98f48 chore(release): set version to 2.9.0 [skip ci]
9252ed3 Merge pull request #584 from ExtendRealityLtd/feat/active-and-enabled-change
d20e1ca feat(Tracking): use current property value to set passthrough mode
2abbbf4 feat(Extension): provide alternative method for isActiveAndEnabled
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps io.extendreality.zinnia.unity from 2.8.0 to 2.9.0.
Release notes
Sourced from io.extendreality.zinnia.unity's releases.
Changelog
Sourced from io.extendreality.zinnia.unity's changelog.
Commits
4b98f48
chore(release): set version to 2.9.0 [skip ci]9252ed3
Merge pull request #584 from ExtendRealityLtd/feat/active-and-enabled-changed20e1ca
feat(Tracking): use current property value to set passthrough mode2abbbf4
feat(Extension): provide alternative method for isActiveAndEnabledDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)