Is there any way I can get locked track ?

Hi

Is there any way I can get locked track ?

There only “muted” and “isSubTrack” in TrackAsset

thx

The property is not public - it should be.

You can access it using SerializedObjects and SerializedProperties (the property name is m_Locked).

I’m Sorry for my poor English. I not quite understand what you mean.

Do you mean : convert TrackAsset to SerializedObjects or SerializedProperties to access m_Locked?

Here’s some sample code to clarify:

            var serializedObject = new SerializedObject(track);
            var serializedProp = serializedObject.FindProperty("m_Locked");
            serializedProp.boolValue = true;
            serializedObject.ApplyModifiedProperties();