Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SpatialMenuElement warning present when entering play-mode #540

Merged
merged 1 commit into from Mar 1, 2019

Conversation

dunity
Copy link
Contributor

@dunity dunity commented Mar 1, 2019

Purpose of this PR

Fix SpatialMenuElement warning present when entering play-mode, due to a missing component on an object in the SpatialMenu prefab. This warning wasn't present outside of play-mode. This fix removes the abstract SpatialMenuElement component from one of the "Text" gameObjects in the SpatialMenu prefab hierarchy.

Testing status

Tested in various scenarios, and wasn't able to reproduce the issue.

Technical risk

Medium. Due to the SpatialMenu prefab being re-serialized, there could be unforeseen minor visual changes. That said, I didn't see any visual difference present when testing.

Comments to reviewers

Enter play-mode, and you no longer see the warning "The class named 'UnityEditor.Experimental.EditorVR.SpatialMenuElement' is abstract. The script class can't be abstract!
UnityEditor.Experimental.EditorVR.Core.EditingContextManager:Awake()" logged from the DefaultScriptReferences class' Create() function.

…o a missing component on an object in the SpatialMenu prefab
@dunity dunity added the bug label Mar 1, 2019
@dunity dunity self-assigned this Mar 1, 2019
Copy link
Collaborator

@mtschoen-unity mtschoen-unity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm, does fix. Thanks for catching this. I was looking for the right components but couldn't find them

@mtschoen-unity mtschoen-unity merged commit 2bfc740 into development Mar 1, 2019
@mtschoen-unity mtschoen-unity deleted the fix-missing-spatial-menu-component branch March 1, 2019 02:33
@mtschoen-unity mtschoen-unity added this to the 0.2.1 milestone Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants