[Bug] Event Selector fails to populate when searching for generic Events

Forums 💬 NodeCanvas ⚙️ Support [Bug] Event Selector fails to populate when searching for generic Events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15750
    step
    Participant

      Unity Version 2020.3.25f1 LTS, Nodecanvas Version 3.2.1

      The Bug appeared in Unity Version 2020.3.19f1. Version 2020.3.18f1 and below worked.

      The Selector Popup for generic Condition Tasks such as “Check CSharp Event (T)”, “Check CSharp Event Value (T)”, “Check Unity Event (T)” and “Check Unity Event Value (T)” fails to populate with selectable entries and just displays “Loading …” forever (see attached Image).

      Reproduction steps:

      • create a new GenericEventTest.cs file with the following content:

      using System;
      using UnityEngine;
      using UnityEngine.Events;

      namespace GenericEventTest
      {
      [Serializable] public class IntEvent : UnityEvent<int> {}
      [Serializable] public class BoolEvent : UnityEvent<bool> {}
      [Serializable] public class FloatEvent : UnityEvent<float> {}
      [Serializable] public class StringEvent : UnityEvent<string> {}

      public class GenericEventTest : MonoBehaviour
      {
      public IntEvent intEvent;
      public BoolEvent boolEvent;
      public FloatEvent floatEvent;
      public StringEvent stringEvent;
      }
      }

      • open the preferred Types Editor and add the whole “GenericEventBug” Namespace
      • add a new Variable of Type “GenericEventTest” to the Blackboard
      • create a new Condition Task and select “Check Unity Event (T)”
      • switch the Tasks Object Reference to the Blackboard Variable above
      • press the “Select Event” Button
      #15752
      Gavalakis
      Keymaster

        Hello there,

        Can you please import the attached unitypackage and let me know if that works for you?

        Thank you!

        #15751
        step
        Participant

          Hi Gavalakis,

          we just tested your fix and it worked in all our cases. Thank you for the quick response!

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.