WaveEngine.Components.Toolkit.TextComponent.DefaultValues C# (CSharp) Method

DefaultValues() protected method

Sets the default values of the component
protected DefaultValues ( ) : void
return void
        protected override void DefaultValues()
        {
            base.DefaultValues();
            this.origin = new Vector2(0.5f);
            this.foreground = Color.White;
            this.layerType = DefaultLayers.Alpha;
            this.LinesInfo = new List<LineInfo>();
            this.textWrapping = false;
            this.width = 300;
            this.TextScale = Vector2.One;

            this.charInfoList = new List<TextCharInfo>();
            this.meshes = new List<Mesh>();
        }