I have a Scripteable Object with a List of InputActionReferences that I needed to clone to make changes to the clone without affecting the original.
I can’t modify the InputActionReference class so I can’t serialize it or add interfaces to it.
Any ideas?
// Clone InputActionReference.
var clone = Object.Instantiate(actionReference);
// Redirect clone to different action.
clone.Set(otherAction);
1 Like
I see I was making my life difficult. I had forgotten that Unity had that option, I was only thinking in pure C#.