예제 #1
0
            /// <summary>
            /// Gathers parameters from the specified AudioClip.
            /// </summary>
            /// <param name="window">The asset window.</param>
            public void OnLoad(AudioClipWindow window)
            {
                // Link
                _window = window;

                // Try to restore target asset AudioClip import options (useful for fast reimport)
                AudioImportSettings.TryRestore(ref ImportSettings, window.Item.Path);

                // Prepare restore data
                PeekState();
            }
예제 #2
0
 /// <summary>
 /// Clears temporary data.
 /// </summary>
 public void OnClean()
 {
     // Unlink
     _window = null;
 }