Esempio n. 1
0
        public void OnAtlasPreRender(Camera camera = null)
        {
            SVGImporterSettings.UpdateAntialiasing();

            if (_atlasHasChanged)
            {
                RebuildAtlas();
                _atlasHasChanged = false;
#if UNITY_EDITOR
                UpdateMaterialList();
#endif
            }
        }
Esempio n. 2
0
        public void OnAtlasPreRender(Camera camera = null)
        {
            //Debug.Log("OnAtlasPreRender: "+camera);
            if (camera != null)
            {
                //Debug.Log("OnAtlasPreRender: "+camera.gameObject.name);
                SVGImporterSettings.UpdateAntialiasing(camera.pixelWidth, camera.pixelHeight);
            }

            if (_atlasHasChanged)
            {
                RebuildAtlas();
                _atlasHasChanged = false;
#if UNITY_EDITOR
                UpdateMaterialList();
#endif
            }
        }