playMaker

Author Topic: cant compile with unity v5 and playmaker [SOLVED]  (Read 3126 times)

flora

  • Playmaker Newbie
  • *
  • Posts: 47
cant compile with unity v5 and playmaker [SOLVED]
« on: March 11, 2015, 06:22:26 PM »
hello

I have the new unity 5 (personal edition) and playmaker 1.7.8 ..  it works fine with the editor, but refuses to compile .. it gives me the following warning :

Code: [Select]
Assets/PlayMaker/Actions/AddComponent.cs(56,88): error CS0619: `UnityEngineInternal.APIUpdaterRuntimeServices.AddComponent(UnityEngine.GameObject, string, string)' is obsolete: `Method is not meant to be used at runtime. Please, replace this call with GameObject.AddComponent<T>()/GameObject.AddComponent(Type).'
I tried to uncheck add.component when importing playmaker, but it didn't work.
I have this problem even on a blank project , so i don't know what to do.

please help !
thank you :)
« Last Edit: March 12, 2015, 12:23:25 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: cant compile with unity v5 and playmaker
« Reply #1 on: March 11, 2015, 10:07:31 PM »
Did you update Playmaker in the Asset Store before importing into Unity 5?

That looks like a failed attempt by the Unity API updater to fix the AddComponent action, but the latest version in the store doesn't need this fix...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: cant compile with unity v5 and playmaker
« Reply #2 on: March 12, 2015, 05:01:20 AM »
Hi,

What's the target platform?

You should run the updater manually in the menu "Assets/Run API Updater"


 Bye,

 Jean

flora

  • Playmaker Newbie
  • *
  • Posts: 47
Re: cant compile with unity v5 and playmaker
« Reply #3 on: March 12, 2015, 11:37:51 AM »
Hello

I thought i had the latest version, but i was wrong ... it is now working with the update :)
Please forgive my foolishness !

Since i am here, i wanted to tell you guys that Playmaker is a fantastic tool .. it is just invaluable for people like me who are more art oriented than code oriented.
You have given us autonomy ...
Long life to playmaker and prosperity to your company !!!
And as always, many thanks for the top notch support.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: cant compile with unity v5 and playmaker [SOLVED]
« Reply #4 on: March 13, 2015, 02:24:59 AM »
Hi,

Thanks :) and don't worry, these updates and upgrades are always a bit stressful... so it's good that you share your issues, it's the only way to solve them fast.

Bye,

 Jean