コード例 #1
0
        internal static void InitScaleAgnosticStyles()
        {
            //While the gui styles themselves only need to be initialized once, all textures must be reassigned between playmodes due to Unity's weird "null" behaviour.
            //We just use one of the textured styles to check init state
            if (Canvas.normalSelector != null)
            {
                if (!Canvas.normalSelector.normal.background)
                {
                    SetTextures();
                }

                return;
            }

            Canvas.Init();
            Skinned.Init();

            SetTextures();
        }
コード例 #2
0
 private static void SetTextures()
 {
     Canvas.SetTextures();
     Skinned.SetTextures();
 }