-
Notifications
You must be signed in to change notification settings - Fork 207
404 error in runtime #405
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
404 error in runtime #405
Conversation
Looks great, thanks for the quick fix! Just FYI scripts inside an Editor folder are never included in a runtime build, so you don't really need to wrap the include in AotHelper, but it doesn't hurt anything :) |
@@ -45,25 +43,25 @@ public class TestVisualRecognitionRC : UnitTest | |||
private string _classifierID = ""; | |||
private string _imageURL = "https://upload.wikimedia.org/wikipedia/commons/e/e9/Official_portrait_of_Barack_Obama.jpg"; | |||
|
|||
#if DELETE_TRAINED_CLASSIFIER | |||
#if TRAIN_DELETE_CLASSIFIER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the reason behind using same variable for both train and delete?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I don't want to pollute our instance of VisRec with classifiers. If I create a classifier I should delete it after I have tested it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense 👍
Summary
This pull request addresses an error running UnityEditor code in outside of the Unity Editor (#404).
UnityEditor.GUID.Generate()
was replaced withSystem.Guid.NewGuid()
in ExampleDiscovery.cs and TestDiscovery.cs. OtherUnityEditor
using statements are now wrapped in an ifdef.Additionally,
VisualRecognition
tests were revised to consolidate create/delete classifier ifdefs and the ServiceExamples scene was revised to includeLanguageTranslatorV2
andLanguageTranslatorV3
.