Cannot use Odin Inspector attribute on TrackAsset

Hello, the odin inspector attribute can use on the ClipAsset(PlayableAsset), such as [HideLabel] and [LabelText].
But they doesn’t work on TrackAsset, could you please support it too? Thank you.

1 Like

This is a little late, so i hope you found a solution, but what seemed to work for me was creating a blank odin editor script.

using UnityEditor;
using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;

[CustomEditor(typeof(CustomTrack))]
public class CustomTrackEditor : OdinEditor { }

Take this code, add it to a file that is in an Editor folder (folder named Editor) and your odin inspector attributes should start working on your TrackAsset subclass.

3 Likes