//
// Copyright (c) 2017 Anthony Marmont. All rights reserved.
// Licensed for use under the Unity Asset Store EULA. See https://unity3d.com/legal/as_terms for full license information.
//
#pragma warning disable
using UnityEngine;
namespace AssetIcons
{
///
/// A model that represents the styles defined in the constructor.
///
///
public sealed class AssetIconsStyle
{
///
/// An expression that's evaluated to determine the width of the icon.
///
///
///
///
///
public string Width { get; set; }
///
/// An expression that's evaluated to determine the height of the icon.
///
///
///
///
///
public string Height { get; set; }
///
/// An expression that's evaluated to determine a horizontal offset of the icon.
///
///
///
///
public string X { get; set; }
///
/// An expression that's evaluated to determine a vertical offset of the icon.
///
///
///
///
public string Y { get; set; }
///
/// A value used to determine the max size of the icon.
///
///
/// 100% will have a width less than or equal to .
///
public int MaxSize { get; set; }
///
/// An anchor that all difference in scale is orientated around.
///
///
///
public IconAnchor Anchor { get; set; }
///
/// A value used to determine the aspect of the icon.
///
public IconAspect Aspect { get; set; }
///
/// An expression that's evaluated to whether the icon should be displayed.
///
///
///
public string Display { get; set; }
///
/// A tint to apply to the icon.
///
///
public string Tint { get; set; }
///
/// A value used to determine the layer of the icon.
///
public int Layer { get; set; }
///
/// A font style to use on all rendered text.
///
///
public FontStyle FontStyle { get; set; }
///
/// An anchor for all rendered text.
///
///
public IconAnchor TextAnchor { get; set; }
///
/// A camera projection for all rendered Prefabs.
///
public IconProjection Projection { get; set; }
///
/// Default constructor for .
///
///
/// The default values from this constructor are the same as the default values of the constructor.
///
public AssetIconsStyle()
{
Width = "100%";
Height = "100%";
X = "0";
Y = "0";
MaxSize = int.MaxValue;
Anchor = IconAnchor.Center;
Aspect = IconAspect.Fit;
Display = "true";
Tint = IconColor.White;
Layer = 0;
FontStyle = FontStyle.Normal;
TextAnchor = IconAnchor.Center;
Projection = IconProjection.Perspective;
}
}
}
#pragma warning restore