Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity PSM and PlayMaker errors

Discussion in 'PSM' started by Kinos141, Jul 5, 2014.

  1. Kinos141

    Kinos141

    Joined:
    Jun 22, 2011
    Posts:
    969
    I just started using Unity PSM and my playmaker games are erroring out everytime I build. They build on other platforms fine, but not Unity PSM.
    Does anyone have a solution or fix to this? Here is a screen shot of the issues
    unitypsm.PNG
     
  2. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,652
  3. PeterD

    PeterD

    Joined:
    Feb 6, 2013
    Posts:
    120
    The quick answer is to do a replace in files in Momodevelop on the Playmaker project

    From #if !(UNITY_IPHONE || UNITY_ANDROID || UNITY_FLASH || UNITY_PS3 || UNITY_BLACKBERRY || UNITY_WP8)

    to

    #if !(UNITY_IPHONE || UNITY_ANDROID || UNITY_FLASH || UNITY_PS3 || UNITY_BLACKBERRY || UNITY_WP8 || UNITY_PSM)

    I did this when I first got PSM for vita and Playmaker now works as expected.
     
  4. Kinos141

    Kinos141

    Joined:
    Jun 22, 2011
    Posts:
    969
    Thanks, but where do I find this file?
     
  5. PeterD

    PeterD

    Joined:
    Feb 6, 2013
    Posts:
    120
    It's not a single file it's in several playmaker actions.

    You need to go to the edit menu of monodevelop and use the replace in files option. to chage the line in all of the affected files.
     
  6. Alex-Chouls

    Alex-Chouls

    Joined:
    Mar 24, 2009
    Posts:
    2,652