playMaker

Author Topic: Erros When Importing Package [Solved]  (Read 1984 times)

NT

  • Playmaker Newbie
  • *
  • Posts: 2
Erros When Importing Package [Solved]
« on: June 12, 2016, 06:34:10 AM »
I recently purchased Playmaker and Gesture Recognizer from the Unity Store. I am using Playmaker 1.8.1 and unity 5.4.

Playmaker works fine on its own and so does Gesture Recognizer, its when I import the package with Playmaker or vice versa I get the following errors.


http://postimg.org/image/tsg4fgzyj/

« Last Edit: June 12, 2016, 05:18:14 PM by NT »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Erros When Importing Package
« Reply #1 on: June 12, 2016, 11:11:04 AM »
It looks like Gesture Recognizer probably defines a Strings class in the global namespace. I don't own Gesture Recognizer to double check.

I would contact the author of Gesture Recognizer and ask if he uses namespaces in his asset to avoid collisions with other assets.

A workaround is to open FsmComponentInspector.cs and replace "Strings." with "HutongGames.PlayMakerEditor.Strings." If you then get errors in other scripts you will need to do the same to those.

EDIT: I've attached a unitypackage with the above workaround applied. NOTE, this is a temporary fix that will get overwritten when you update. The real solution is for Gesture Recognizer to use namespaces.


NT

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Erros When Importing Package
« Reply #2 on: June 12, 2016, 05:17:49 PM »
Great stuff and thank you!