CHANGE: Added warning messages to both OnScreenStick and OnScreenButton Inspector editors that would display a warning message in case on-screen control components are added to a GameObject not part of a valid UI hierarchy.
FIX: ISXB-915 OnScreenStick throws System.Exception if added to a GameObject not part of a UGUI object hierarchy.
FIX: ISXB-916 Entering play-mode with a OnScreenStick attached to a non UI hierarchy Game Object floods console with InvalidCastException.
Changes made
See Description. Changes introduced on OnScreenStick and OnScreenButton repectively to respect the fact that base class OnScreenControl is currently agnostic to UI system while OnScreenStick and OnScreenButton currently only support UGUI (UnityEngine.UI).
Notes
Recommend testing with repro steps from linked tickets.
There is also a UX or potential docs perspective to review in how the changes to warning messaged in UI and Console are affected.
Changes require manual verification.
Checklist
Before review:
[x] Changelog entry added.
Explains the change in Changed, Fixed, Added sections.
For API change contains an example snippet and/or migration example.
FogBugz ticket attached, example ([case %number%](https://issuetracker.unity3d.com/issues/...)).
FogBugz is marked as "Resolved" with next release version correctly set.
Description
CHANGE: Added warning messages to both
OnScreenStick
andOnScreenButton
Inspector editors that would display a warning message in case on-screen control components are added to aGameObject
not part of a valid UI hierarchy. FIX: ISXB-915 OnScreenStick throws System.Exception if added to a GameObject not part of a UGUI object hierarchy. FIX: ISXB-916 Entering play-mode with a OnScreenStick attached to a non UI hierarchy Game Object floods console with InvalidCastException.Changes made
See Description. Changes introduced on
OnScreenStick
andOnScreenButton
repectively to respect the fact that base classOnScreenControl
is currently agnostic to UI system whileOnScreenStick
andOnScreenButton
currently only support UGUI (UnityEngine.UI).Notes
Recommend testing with repro steps from linked tickets.
There is also a UX or potential docs perspective to review in how the changes to warning messaged in UI and Console are affected.
Changes require manual verification.
Checklist
Before review:
Changed
,Fixed
,Added
sections.([case %number%](https://issuetracker.unity3d.com/issues/...))
.Area_CanDoX
,Area_CanDoX_EvenIfYIsTheCase
,Area_WhenIDoX_AndYHappens_ThisIsTheResult
.During merge:
NEW: ___
.FIX: ___
.DOCS: ___
.CHANGE: ___
.RELEASE: 1.1.0-preview.3
.After merge: