Reputation: 11
I'm new here. can you help me with this?
Since Unity 5 this method is deprecated
UnityEngineInternal.APIUpdaterRuntimeServices.AddComponent(gameObject, "Assets/Parley Assets/Scripts/Dialog.cs (150,5)", dialogClass);
and the auto updater replaced it with a call to
UnityEngineInternal.APIUpdaterRuntimeServices.AddComponent<Dialog>();
But i get error, anyway
Upvotes: 0
Views: 724
Reputation: 1
I had to supply the type of the dialogClass variable when calling AddComponent to make it fully work:
gameObject.AddComponent(Type.GetType(dialogClass));
Hope this helps you.
Upvotes: 0
Reputation: 11
Ok fixed just now,
for those who have the same problem just replace this
UnityEngineInternal.APIUpdaterRuntimeServices.AddComponent(gameObject, "Assets/Parley Assets/Scripts/Dialog.cs (150,5)", dialogClass);
with this
gameObject.AddComponent<Dialog>();
Upvotes: 1