Hello.
I am making a bunch of custom Tracks types for Timelines.
I just have a readability issue where Unity will auto generate a “Add From” option for every serialized field of each clip type of the track.
In this screenshot, only the last option is useful : “Add Write Float”.
I am trying to get rid of all the others (they are all auto generated from the serialized fields I have on the clip).
Here is the clip script :
[DisplayName("Write Float Clip")]
[Serializable]
public class WriteFloatClip : PlayableAsset, ITimelineClipAsset
{
// The FloatReference class have a bunch of serialized fields.
// Those fields should stay exposed to the user, but not in the "Add Clip" Menu
[Header("Values")]
[SerializeField] private FloatReference startValue = new FloatReference(0f);
[SerializeField] private FloatReference endValue = new FloatReference(1f);
...
}
Any idea where I can look ?
I may have missed it, but I didn’t found how to edit the right clic menu in the timeline context.
It’s unfortunately makes the interface less readable for anybody that didn’t wrote the script.
Thanks in advance.
