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 = 128, int height = 128) {
Text = text;
Background = background;
FontSize = fontSize;
Width = width;
Height = height;
}
}
}