Search Issue Tracker
By Design
Votes
0
Found in
5.4.0b17
Issue ID
792613
Regression
Yes
[Upgrade] Zone Controller Pro package contains "LoadAssetAtPath is not allowed to be called from a ScriptableObject constructor
[Upgrade] Zone Controller Pro package contains "LoadAssetAtPath is not allowed to be called from a ScriptableObject constructor"
1. What happened
In Zone Control Pro package lots of errors in the package on "LoadAssetAtPath is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead."
Package needs updating for 5.4.
2. How we can reproduce it using the example you attached
1. Import " Zone Controller Pro" package.
2. Open Cimenatic scene (UtopiaWorx -> Zone Controller Pro -> Demo Content -> Scenes).
3. Press Play.
4. In Hierarchy expand Canvas -> (e.g.) Lightning area -> Select New Zone.
Actual result:
In 5.4.0b17 (see screenshot attached):
LoadAssetAtPath is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'ZoneMasterControllerEditor'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.EditorGUIUtility:Load(String)
ZoneMasterControllerEditor:.ctor()
In 5.4.0b4:
LoadAssetAtPath is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'ZoneControllerEditor' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.EditorGUIUtility:Load(String)
ZoneControllerEditor:.ctor()
In 5.3.4f1 (see screenshot attached): No errors.
Expected results: No errors in logs.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Add comment