Playmaker Forum

PlayMaker News => General Discussion => Topic started by: WabbysLand on May 04, 2018, 02:38:32 PM

Title: Unity 2018 compatibility?
Post by: WabbysLand on May 04, 2018, 02:38:32 PM
Hello,

I just switched my project to Unity 2018.1 because I'm very interested by his new features but I'm a bit worry about Playmaker because, there are some errors (procedural meterial folder is incompatible so I just deleted it) and there is no way to work with the uGui addon.

I saw on Twitter that uGui will be integrated to your next release, that's nice. But what about other addon like Arraymaker (not yet integrated in my project, but I will need it soon).

In general, I'm very happy to use Playmaker but I also have the feeling that the documentation (wiki) and some addons are a bit obsolete... It's not always easy to understand what to use. Even, the tutorials on YouTube are so old.
Title: Re: Unity 2018 compatibility?
Post by: djaydino on May 04, 2018, 02:52:42 PM
Hi,

The new Playmaker version should be released very soon. (which will be compatible with 2018.1)

Array maker will not be standard in playmaker (but there are array actions)
You can get 'Array maker' on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
as well as ugui actions and many other custom actions/packages

The ugui action on the ecosystem might be slightly different than the ones in the next release, but both should work.
Title: Re: Unity 2018 compatibility?
Post by: WabbysLand on May 04, 2018, 03:03:59 PM
Ok, thank you very much.
Title: Re: Unity 2018 compatibility?
Post by: Athin on May 07, 2018, 05:22:22 AM
Hey all.

Was just wondering if we have a timeline on the new patch for play maker compatibility for unity 2018?

Thanks
Title: Re: Unity 2018 compatibility?
Post by: NvdS on May 07, 2018, 06:42:37 AM
I'm running into a problem in 2018.1 version as well. Importing Playmaker from the asset store fails. From the menu I only get the tools and install playmaker option. Installing playmaker doesn't help....

Title: Re: Unity 2018 compatibility?
Post by: djaydino on May 07, 2018, 07:26:20 AM
Hi.
Playmaker 1.9 is in the final testing stage, so hopefully it will be released in the next few days (depending on unity also as they will review before accepting an update)
Title: Re: Unity 2018 compatibility?
Post by: Alex Chouls on May 07, 2018, 04:38:33 PM
I'm running into a problem in 2018.1 version as well. Importing Playmaker from the asset store fails. From the menu I only get the tools and install playmaker option. Installing playmaker doesn't help....

Make sure you update while running Unity 2018.1 before importing. Note, there are bugs with the Asset Store showing Import instead of Update and also not getting the correct package for the current version of Unity. But once you manage to get the latest package it is compatible with 2018.1!

You can also manually delete the PlayMaker/Actions/ProceduralMaterial folder to get an older project to work in 2018.1. 2018.1 removed built in support for Substance materials.

One other thing: 2018.1 changed the way it renders textures in the editor. If Project Settings > Player > Color Space is set to Gamma (now the default?) Playmaker editor texture will look a little bright! You can switch to Linear, or wait for 1.9.0 to fix this issue...
Title: Re: Unity 2018 compatibility?
Post by: mekjal on May 08, 2018, 01:11:16 PM
Hi Alex - any ETA on 1.9?  Do you happen to have an update list of changes?
Title: Re: Unity 2018 compatibility?
Post by: andgeno on May 20, 2018, 02:08:52 AM
Hi, I'd like to ask what the status is for v1.9. :-)
Title: Re: Unity 2018 compatibility?
Post by: Alex Chouls on May 20, 2018, 01:26:03 PM
We're finishing up the beta. We have a release candidate and I'm hoping we can get it out this week.
Title: Re: Unity 2018 compatibility?
Post by: stvbabb on May 24, 2018, 11:05:10 AM
Cool! I've see so many great features on twitter and I can't wait to test it out. :)
Title: Re: Unity 2018 compatibility?
Post by: WabbysLand on May 28, 2018, 05:19:48 AM
Plamaker 1.9 works very well in my Unity 2018.1 project, thank you very much for this new release.

And I really like the new features and visual improvements :-)

https://twitter.com/WabbysLand (https://twitter.com/WabbysLand)
Title: Re: Unity 2018 compatibility?
Post by: thecosmicboy on May 31, 2018, 11:25:38 AM
Imported 1.9 all seems good except I cannot find the global variables tab anymore? I need to create a global so it creates the playmakerglobals.asset I can then replace with my own backup. Am I doing something wrong?
Title: Re: Unity 2018 compatibility?
Post by: jeanfabre on June 01, 2018, 03:08:16 AM
Hi,

 yes, globals only exists inside playmakerglobals.asset

 I am not sure what you mean by global variable tab and how you have made your backup, normally if you want to totally overwrite, just replacing your  playmakerglobals.asset will do, else you need to export and import globals using PlayMaker tools menu.

Bye,

 Jean
Title: Re: Unity 2018 compatibility?
Post by: InbalTal on July 13, 2018, 02:28:53 PM
HI
what about playmaker 1.9 + Vuforia to unity 2018.1.6f1? it's does'nt work at all.
I get a compile error when downloading vuforia from ecosystem.

There is a fix bug coming soon?
Title: Vuforia playmaker Action in unity 2018[SOLVED]
Post by: InbalTal on July 14, 2018, 04:47:56 AM
Hi
To work with Playmaker vuforia action on Unity 2018 you have to do the following:
1. Download the Vuforia plugin from the Ecosystem.
2. Update the PlayMakerUtils from the Ecosystem.
3. Download "Substance in Unity" from the Assets Store

Good luck!
Inbal
Title: Re: Unity 2018 compatibility?
Post by: jeanfabre on July 18, 2018, 04:41:59 AM
Hi,

 I just updated Vuforia. Can you try? if that doesn't work, it's because you need to move to 2018.2, I tested and it work on that version of Unity fine.

 Bye,

 Jean
Title: Re: Unity 2018 compatibility?
Post by: InbalTal on July 18, 2018, 06:53:02 AM
Hi Jean
Thank's for the Upgarde
but it's does'nt work
Here is what I did:
1. Install Unity 2018.2.0f2 + Vuforia:  v. 7.2.20
2. Install PlayMaker 1.9 from the AssetStore
3. Install  Ecosystem from the Addons
4. Install Vuforia for Playmaker from the Ecosystem (unity 2017)
5. Install Playmaker Utils from the Ecosystem

The error that I get is:

Assets/PlayMaker Vuforia/Actions/VuforiaGetExtendedTracking.cs(28,3): error CS0246: The type or namespace name `IEditDataSetBehaviour' could not be found. Are you missing an assembly reference?

What Could be worng?

Inbal
Title: Re: Unity 2018 compatibility?
Post by: jeanfabre on July 19, 2018, 02:47:31 AM
Hi,

 I think then that Vuforia:  v. 7.2.20 is the problem.

unfortunatly, updating vuforia fails on my computer so I can't test on that version.


also, in the steps, you really only need to install the vuforia package from the ecosystem, PLayMaker Utils is up to date on that latest package.


If you don't need extended tracking, simply delete that action and check if eveything else works while I find a solution to install the latest vuforia.

 Bye,

 Jean




Title: Re: Unity 2018 compatibility?
Post by: jeanfabre on July 19, 2018, 03:13:04 AM
Hi,

 ok, so Vuforia and Unity don't really play well together when using the unityhub... that's not cool.

solution is here: https://developer.vuforia.com/forum/unity/updating-vuforia-version-when-using-unity-hub


and regards the error, indeed I can confirm that you need to delete the offending action while I learn the new way of doing it and provide a dedicated action for it.

 Bye,

 Jean
Title: Re: Unity 2018 compatibility?
Post by: jeanfabre on July 19, 2018, 06:10:31 AM
Ok,

 Updated the package, with a nice system I put in place to handle the various versions of Vuforia.

Please update the package, the action will be flaged as obsolete, and now Vuforia has a new Device Tracker system that's supposed to take over the extended tracking feature we had previously.

more infos here: https://library.vuforia.com/articles/Training/Extended-Tracking

If all is well on your side, I'll announce that release.

Bye,

 Jean
Title: Re: Unity 2018 compatibility?
Post by: InbalTal on July 19, 2018, 11:29:15 AM
HI Jean

Thank you for your upgrade.
Still the same Error

I Delete the Vuforia Playmaker from my Assent and eveythink is working Fine (No Errors).
when I Download it from the Ecosystem, I get the same error above.  :-\
Inbal
Title: Re: Unity 2018 compatibility?
Post by: jeanfabre on July 19, 2018, 02:23:39 PM
Hi,

 uhm yes I see, once the error is here, Unity doesn't let Editor scripts run and so It's too late, I don't have time to set internal scripting define symbols...

 two ways to go about this for now:

-  you add PLAYMAKER_VUFORIA_7_2_20_OR_NEWER to your PlayerSettings Scripting define symbols

or

- you delete the action VuforiaGetExtendedTracking

I'll try meanwhile to find a way to have one package for both vuforia, but it looks compromised unfortunatly.

 Bye,

 Jean
Title: Re: Unity 2018 compatibility?
Post by: InbalTal on July 20, 2018, 02:22:29 AM
Hi Jean
Thank you for your fast reply
I change the script but stiil get error in the:  _target.DeviceTracker (it dont Recognize)
what do i do wrong?


// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.

using UnityEngine;
using Vuforia;
using System;

namespace HutongGames.PlayMaker.Actions
{
   [ActionCategory("Vuforia")]
   [Tooltip("Get the Device Tracker option for Target.")]

   //#if PLAYMAKER_VUFORIA_7_2_20_OR_NEWER
   [Obsolete("ExtendedTracking is now replaced by 'Device Tracker'")]
   //#endif
   public class VuforiaGetDeviceTracker : FsmStateAction
   {

      [Tooltip("The Target to check (must have Device Trackerinterface")]
      public FsmOwnerDefault GameObject;

      [UIHint(UIHint.Variable)]
      [Tooltip("")]
      public FsmBool DeviceTracker;

      public FsmEvent DeviceTrackerEnabled;
      public FsmEvent DeviceTrackerDisabled;

      public FsmEvent Error;

      GameObject _owner;
      GameObject _goTarget;

//#if !PLAYMAKER_VUFORIA_7_2_20_OR_NEWER
        DeviceTracker _target;
      //#endif

      int value = -1;

      public override void Reset()
      {
         GameObject = null;
            Device Tracker = null;
            Device TrackerEnabled = null;
            Device TrackerDisabled = null;
         Error = null;
      }
      
      public override void OnEnter()
      {

         ExecuteAction ();
      }

      public override void OnUpdate ()
      {
         ExecuteAction ();
      }
         
      void ExecuteAction()
      {
         //#if !PLAYMAKER_VUFORIA_7_2_20_OR_NEWER
         _owner = Fsm.GetOwnerDefaultTarget (GameObject);

         if (_goTarget != _owner ) {
            _goTarget = _owner;
            if (_goTarget == null) {
               _target = null;
            } else{
               _target = _goTarget.GetComponent< DeviceTracker > ();
            }

            if (_target == null) {
               Fsm.Event (Error);
            }

         }
            
         if (_target == null) {
            return;
         }

         if (!DeviceTracker.IsNone) {
                DeviceTracker.Value = _target.DeviceTracker;
         }

         if (value == -1 || value == 1 != _target.DeviceTracker) {
            value = _target.DeviceTracker ? 1:0;
            if (value == 1) {
               Fsm.Event (DeviceTrackerEnabled);
            }
            if (value == 0) {
               Fsm.Event (DeviceTrackerDisabled);
            }
         }
         //#endif
      }
      
      
   }
}


Title: Re: Unity 2018 compatibility?
Post by: jeanfabre on July 20, 2018, 04:06:26 AM
Hi,

 you don't need to modify the script, you either delete it all together ( cause it's not obsolete in vuforia 7.2.20) or you add PLAYMAKER_VUFORIA_7_2_20_OR_NEWER to your plaerSettings scripting symbols.

 Bye,

 Jean
Title: Re: Unity 2018 compatibility?
Post by: InbalTal on July 20, 2018, 04:41:17 AM
Hi Jean
 Good News!!
It's works!!

Just add the PLAYMAKER_VUFORIA_7_2_20_OR_NEWER to the player Settings scripting symbols

thank's
You can Publish the update...
have a great day
Inbal