evasiongames/gameflow

Property field Broken in Set Script Property Action

nikosurfing opened this issue · 4 comments

Unity version 2018.3.14f1 (25 April 2019) with Gameflow version 1.2.0 and1.2.1. The Property field is broken in "set script property" action.

To reproduce:

  1. Create blank new project, and make sure the newest version of GameFlow is imported
  2. Create sample script with public variable:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Script : MonoBehaviour
{
    public string testSTRING;
    public bool TestBool;

    public void testScript()
    {
        Debug.Log( "Test running script");
    }
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}

  1. Create new object and add gameflow component
  2. Attach sample script to new object
  3. Add the OnStart program to the GameFlow component.
  4. Add "Set script property" action and drag script to component
  5. You can't select any property to set the script

This is the sample project:
download

I really need this action to work to my current project (i was upgrade from unity 2017 to 2018, can't rolliback again this time). Can i use another actions to replace "set script property" or another trick to do that?

edit: change typo of unity version

No workarounds for this, sorry. Please contact support@evasiongames.com (indicating your Asset Store purchase order number) and we will send you a new version with the fix as soon as possible.

Thank you, I was accidentally drop purchase order number on this github, but i sent it to your email support. please check your mail.

Hi!
There is a workaround. If you alter your script and add a method with return value (the variable you want to pass to GF), you can use an invoke method in GF to get the variable from script.