Example #1
0
    // Check if dirty
    private void CheckIfTextureChange()
    {
        Texture2D rSpriteTexture = m_rSpriteSettings.textureContainer;

        if (rSpriteTexture != null)
        {
            string oTextureImportGUID = Uni2DEditorUtils.GetTextureImportGUID(rSpriteTexture);
            if (oTextureImportGUID != m_oTextureImportGUID)
            {
                // On texture change
                OnTextureChange(oTextureImportGUID);
            }
        }
    }
Example #2
0
 // After build
 public void AfterBuild()
 {
     m_oTextureImportGUID = Uni2DEditorUtils.GetTextureImportGUID(m_rSpriteSettings.textureContainer);
 }