Example #1
0
    public void UpdateBackgroundTexture(string textureName)
    {
        m_uiBackgroundSelectPopup.ClosePopup();
        if (textureName.Equals(m_state.GetBackgroundTextureName) == false)
        {
            Texture texture = AssetBundleEx.Load <Texture>(string.Format("[Textures]/[PhotoStudio]/{0}", textureName));
            StartCoroutine("OnUpdateBackgroundTexture", texture);

            texture = null;
        }
    }