示例#1
0
            /// <summary>
            /// Gathers parameters from the specified texture.
            /// </summary>
            /// <param name="window">The asset window.</param>
            public void OnLoad(TextureWindow window)
            {
                // Link
                _window = window;

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

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