using UnityEngine;
namespace UnityEditor.Rendering
{
///
/// Contains a set of methods to help render the inspectors of Lights across SRP's
///
public partial class LightUI
{
///
/// Styles
///
public static class Styles
{
///
/// General
///
public static readonly GUIContent generalHeader = EditorGUIUtility.TrTextContent("General");
///
/// Shape
///
public static readonly GUIContent shapeHeader = EditorGUIUtility.TrTextContent("Shape");
///
/// Rendering
///
public static readonly GUIContent renderingHeader = EditorGUIUtility.TrTextContent("Rendering");
///
/// Emission
///
public static readonly GUIContent emissionHeader = EditorGUIUtility.TrTextContent("Emission");
///
/// Shadows
///
public static readonly GUIContent shadowHeader = EditorGUIUtility.TrTextContent("Shadows");
///
/// Light Layer
///
public static readonly GUIContent lightLayer = EditorGUIUtility.TrTextContent("Light Layer", "Specifies the current Light Layers that the Light affects. This Light illuminates corresponding Renderers with the same Light Layer flags.");
// Emission
///
/// Color
///
public static readonly GUIContent color = EditorGUIUtility.TrTextContent("Color", "Specifies the color this Light emits.");
///
/// Light Appearance
///
public static readonly GUIContent lightAppearance = EditorGUIUtility.TrTextContent("Light Appearance", "Specifies the mode for this Light's color is calculated.");
///
/// Options for Light Appearance
///
public static readonly GUIContent[] lightAppearanceOptions = new[]
{
EditorGUIUtility.TrTextContent("Color"),
EditorGUIUtility.TrTextContent("Filter and Temperature")
};
///
/// Units for Light Appearance
///
public static readonly GUIContent[] lightAppearanceUnits = new[]
{
EditorGUIUtility.TrTextContent("Kelvin")
};
///
/// The color filter
///
public static readonly GUIContent colorFilter = EditorGUIUtility.TrTextContent("Filter", "Specifies a color which tints the Light source.");
///
/// Color Temperature
///
public static readonly GUIContent colorTemperature = EditorGUIUtility.TrTextContent("Temperature", "Specifies a temperature (in Kelvin) used to correlate a color for the Light. For reference, White is 6500K.");
///
/// When using Preset of Light Component, only a subset of properties are supported. Unsupported properties are hidden.
///
public static readonly string unsupportedPresetPropertiesMessage = L10n.Tr("When using Preset of Light Component, only a subset of properties are supported. Unsupported properties are hidden.");
}
}
}