#pragma warning restore 0414 private void Awake() { this.test2.prefsString.TopMargin = 50f; this.test2.prefsButton3.TopMargin = 30f; this.test2.prefsButton3.BottomMargin = 25f; this.test1.prefsIntSlider.BottomMargin = 50f; this.test1.prefsIntSlider.GuiLabelSufix = RichTextColors.Blue(" ~ "); this.test1.prefsIntSlider.GuiLabelPrefix = RichTextColors.Red(" ~ "); }
#pragma warning restore 0414 private void Awake() { Debug.Log(HierarchyTest1.FullHierarchy); Debug.Log(HierarchyTest2Ex2.FullHierarchy); this.test2.PrefsString.TopMargin = 50f; this.test2.PrefsString.BottomMargin = 50f; this.test2.PrefsButton3.TopMargin = 30f; this.test2.PrefsButton3.BottomMargin = 25f; this.test1.PrefsIntSlider.BottomMargin = 50f; this.test1.PrefsIntSlider.GuiLabelSufix = RichTextColors.Blue(" ~ "); this.test1.PrefsIntSlider.GuiLabelPrefix = RichTextColors.Red(" ~ "); this.test3.PrefsLabel1.TopMargin = 20f; this.test3.PrefsLabel1.BottomMargin = 20f; this.prefsRect.TopMargin = 15f; }
/// <summary> /// Surrounds the given text in the needed tags for rich text color, with the specified color. /// </summary> /// <param name="thisString">Current string.</param> /// <param name="color">Color that the text should be.</param> public static string AddRichTextTag_Color(this string thisString, RichTextColors color) // [6] { return string.Format("<color={0}>{1}</color>", color.ToString(), thisString); }