- Home /
Existence of UnityEngine.Reflect in a project
I am working on a plugin, which would support unity reflect projects. What it does, is that it gets Metadata information from differnet objects (in my case made by Revit).
UnityEngine.Reflect.Metadata metadata = object_.GetComponent<UnityEngine.Reflect.Metadata>();
But the problem that i am facing right now is, that this plugin is not meant only for unity reflect projects. So in case if there is no intergration of such an object (in my case without Revit), then compiler will throw me an error for the code line, that i wrote it before:
Error CS0234 The type or namespace name 'Reflect' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)*
And now what i would like to know, if there exists a way to prove the existence of this Reflect namespace and execute it only, if it's existence is proved. I would rather prefer this option, as to make two different plugins. If there is also another way to avoid this kind of problem, i am all ears.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Reflect bullets in 3D world space 1 Answer
Renderer on object disabled after level reload 1 Answer
Bullet ricochet 0 Answers