public static void CreateFont() { var window = Dialog.ShowDialog <CreateFontDialogWindow>("Create font", DialogType.YesNo); window.Yes += sender => { var font = CoreUIStyleCreator.CreateStyle <CoreUIFont>(sender.Name); var material = new Material(Shader.Find("CoreUI/CoreUITextMeshShader")); material.SetTexture("_MainTex", sender.Texture); font.Material = material; ObjectCreatorHelper.CreateAsset(material, string.Format("{0}.mat", sender.Name)); font.Texture = sender.Texture; }; }
public static void CreateToggleStyle() { CoreUIStyleCreator.CreateStyle <ButtonStyle>(); }
public static void CreateScrollStyle() { CoreUIStyleCreator.CreateStyle <ScrollStyle>(); }
public static void CreateSliderStyle() { CoreUIStyleCreator.CreateStyle <SliderStyle>(); }
public static void CreateFlexibleImageStyle() { CoreUIStyleCreator.CreateStyle <FlexibleImageStyle>(); }
public static void CreateImageStyle() { CoreUIStyleCreator.CreateStyle <ImageStyle>(); }
public static void CreateWindowStyle() { CoreUIStyleCreator.CreateStyle <WindowStyle>(); }