Baste-RainGames / SerializableAction_Unity

A faster and more flexible replacement for Unity's UnityEvent.
MIT License
43 stars 4 forks source link

Issue with dealing with List<SerializableAction> #3

Open Ferdric-AVPL opened 4 years ago

Ferdric-AVPL commented 4 years ago

Hi there,

First of all, this is a great plugin! I can get to call methods which need more than one parameter, let alone Enum parameters!

Second, I have an issue with regards to dealing with List field(s). Here is my code:

[System.Serializable]
public class Step
{
    public SerializableAction OnStartedAction;
    public SerializableAction OnFinishedAction;
}
public class StepManager : MonoBehaviour
{
    [SerializeField] private List<Step> steps;
}

The issue here is when I select a particular action listener of OnStartedAction in Element 0, the OnStartedAction listener of the same index in Element 1 is also selected. image

Second, when I add a new listener to OnStartedAction in Element 0, a new listener gets added to OnStartedAction in Element 1: image

Third, I dragged a Cube game object onto OnStartedAction in Element 0, and the same thing happens in OnStartedAction in Element 1: image

May I request that you fix this issue at the soonest?

Thank you!