// ---------------------------------------------------------------------------- // Protected & Private Methods // ---------------------------------------------------------------------------- protected override GameObject CreateChildren() { GameObject container = new GameObject(); container.name = "SysInfoView"; container.transform.SetParent(_statsMonitor.transform, false); var g = new GraphicsFactory(container, _statsMonitor.colorFPS, _statsMonitor.fontFace, _statsMonitor.fontSizeSmall); _text = g.Text("Text", "", null, 0, null, false); return(container); }
// ---------------------------------------------------------------------------- // Protected & Private Methods // ---------------------------------------------------------------------------- protected override GameObject CreateChildren() { GameObject container = new GameObject(); container.name = "StatsView"; container.transform.SetParent(_statsMonitor.transform, false); var rect = container.AddComponent <RectTransform>(); var g = new GraphicsFactory(container, _statsMonitor.colorFPS, _statsMonitor.fontFace, _statsMonitor.fontSizeSmall); _text1 = g.Text("Text1", ""); var _image = container.AddComponent <RawImage>(); _image.color = Util.Utils.HexToColor32("00314ABE"); return(container); }
// ---------------------------------------------------------------------------- // Protected & Private Methods // ---------------------------------------------------------------------------- protected override GameObject CreateChildren() { _fpsTemplates = new string[3]; GameObject container = new GameObject(); container.name = "FPSView"; container.transform.SetParent(_statsMonitor.transform, false); var g = new GraphicsFactory(container, _statsMonitor.colorFPS, _statsMonitor.fontFace, _statsMonitor.fontSizeSmall); _text = g.Text("Text", "000FPS"); _text.alignment = TextAnchor.MiddleCenter; return(container); }
// ---------------------------------------------------------------------------- // Protected & Private Methods // ---------------------------------------------------------------------------- protected override GameObject CreateChildren() { _fpsTemplates = new string[3]; GameObject container = new GameObject(); container.name = "StatsView"; container.transform.SetParent(_statsMonitor.transform, false); var g = new GraphicsFactory(container, _statsMonitor.colorFPS, _statsMonitor.fontFace, _statsMonitor.fontSizeSmall); _text1 = g.Text("Text1", ""); var layout = container.AddComponent <VerticalLayoutGroup>(); layout.childControlHeight = true; layout.childControlWidth = true; return(container); }