Toggling between Playground On/Off
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the failure in Unity v2018.3.6f1 by toggling Playground On/Off repeatedly, then inspect Assets/INTERNAL/Scripts/Editor/DefaultComponents/GameObjectInspector.cs around lines 101, 112, and 115. Trace the obsolete PrefabUtility calls and confirm that repeated toggling completes without console errors or leaving the user unable to switch modes.
Written by the indexing model from the issue text.
Description
Hi Ciro :)
Using Unity v2018.3.6f1 and the current Unity Asset Store build of the Unity Playground, I find that some console errors are thrown after toggling between Playground On/Off a couple of times (first time is fine). As a consequence, the user is no longer able to toggle between these modes. The Console Log seems to indicate that the issue relates from syntax changes:
Assets/INTERNAL/Scripts/Editor/DefaultComponents/GameObjectInspector.cs(101,49): warning CS0618: UnityEditor.PrefabUtility.GetPrefabParent(UnityEngine.Object)' is obsolete: Use GetCorrespondingObjectFromSource.'
Assets/INTERNAL/Scripts/Editor/DefaultComponents/GameObjectInspector.cs(112,35): warning CS0618: UnityEditor.PrefabUtility.RevertPrefabInstance(UnityEngine.GameObject)' is obsolete: Use the overload that takes an InteractionMode parameter.'
Assets/INTERNAL/Scripts/Editor/DefaultComponents/GameObjectInspector.cs(115,91): warning CS0618: UnityEditor.PrefabUtility.GetPrefabParent(UnityEngine.Object)' is obsolete: Use GetCorrespondingObjectFromSource.'
Assets/INTERNAL/Scripts/Editor/DefaultComponents/GameObjectInspector.cs(115,157): warning CS0618: UnityEditor.ReplacePrefabOptions' is obsolete: This has turned into the more explicit APIs, SavePrefabAsset, SaveAsPrefabAsset, SaveAsPrefabAssetAndConnect'
Assets/INTERNAL/Scripts/Editor/DefaultComponents/GameObjectInspector.cs(115,35): warning CS0618: UnityEditor.PrefabUtility.ReplacePrefab(UnityEngine.GameObject, UnityEngine.Object, UnityEditor.ReplacePrefabOptions)' is obsolete: Use SaveAsPrefabAsset or SaveAsPrefabAssetAndConnect with a path instead.'
Cheers,
Jim
- Dominant language
- C#
- Stars
- 974
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Unity-Technologies/UnityPlayground
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
Unity-Technologies/UnityPlayground#42 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Unity-Technologies/UnityPlayground#40 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Unity-Technologies/UnityPlayground#36 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
Unity-Technologies/UnityPlayground#31 · 1 comment ·
All issues in Unity-Technologies/UnityPlayground
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 75/100
sillsdev/languageforge-lexbox#2665 ·
-
bug documentation frontend
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
azurenoops/spin_agent#975 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·