Reply To: [Bug] ReflectionsTools.cs

NodeCanvas Forums Support [Bug] ReflectionsTools.cs Reply To: [Bug] ReflectionsTools.cs

#13560
psykaw
Participant

Hey,

I don’t understand because if you found a type due to fallbackNoNamespace you don’t use the typeFullName which is bad. You have to cache it to not lookup twice or more for the next time you have the same typeFullName. So the best solution is to do this:

PS: I edited my NodeCanvas version to avoid resolution type by attribute(DeserializeFromAttribute) or without namespace. It causes a huge CPU spike when I instanciate a blackboard at runtime. Could it be resolved at serialization or something like that but not at runtime?
And for ReflectionTools::GetDirectType() it could be resolved quickly if you concat assembly name of the type at the end separated with a comma. Ex: Type.GetType(“UnityEditor.ProfilerWindow,UnityEditor.dll”).