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(); }
private static void SetTextures() { Canvas.SetTextures(); Skinned.SetTextures(); }