Skip to content

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

Merged
merged 10 commits into from
Jun 26, 2018
Merged

404 error in runtime #405

merged 10 commits into from
Jun 26, 2018

Conversation

mediumTaj
Copy link
Contributor

@mediumTaj mediumTaj commented Jun 14, 2018

Summary

This pull request addresses an error running UnityEditor code in outside of the Unity Editor (#404). UnityEditor.GUID.Generate() was replaced with System.Guid.NewGuid() in ExampleDiscovery.cs and TestDiscovery.cs. Other UnityEditor 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 include LanguageTranslatorV2 and LanguageTranslatorV3.

@kimberlysiva
Copy link
Contributor

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 :)

@mediumTaj mediumTaj requested a review from mamoonraja June 25, 2018 15:46
@@ -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
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense 👍

@mediumTaj mediumTaj merged commit db0d2a1 into develop Jun 26, 2018
@mediumTaj mediumTaj deleted the 404-error-in-runtime branch June 26, 2018 02:26
This was referenced Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants