using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Cyber.Util {
///
/// Text texture properties. See .
///
[System.Serializable]
public struct TextTextureProperties {
///
/// The text.
///
public string Text;
///
/// The background color.
///
public Color Background;
///
/// The size of the font.
///
public int FontSize;
///
/// The width of the texture.
///
public int Width;
///
/// The height of the texture.
///
public int Height;
///
/// Creates new properties for a specified kind of text. See
/// for usage.
///
/// Text.
/// Background.
/// Font size.
/// Width.
/// Height.
public TextTextureProperties(string text, Color background = new Color(), int fontSize = 32, int width = 256, int height = 256) {
Text = text;
Background = background;
FontSize = fontSize;
Width = width;
Height = height;
}
}
}