Class TutorialStyles
Controls masking and highlighting styles, and style sheets for the tutorials.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.Tutorials.Core.Editor
Syntax
public class TutorialStyles : ScriptableObject
Fields
DarkThemeStyleSheet
Used when the Professional Editor Theme is chosen.
Declaration
public StyleSheet DarkThemeStyleSheet
Field Value
Type | Description |
---|---|
StyleSheet |
DefaultDarkStyleFile
The default style sheet file used when the Professional Editor Theme is chosen. Deprecated.
Declaration
public static readonly string DefaultDarkStyleFile
Field Value
Type | Description |
---|---|
String |
DefaultLightStyleFile
The default style sheet file used when the Personal Editor Theme is chosen. Deprecated.
Declaration
public static readonly string DefaultLightStyleFile
Field Value
Type | Description |
---|---|
String |
LightThemeStyleSheet
Used when the Personal Editor Theme is chosen.
Declaration
public StyleSheet LightThemeStyleSheet
Field Value
Type | Description |
---|---|
StyleSheet |
Properties
BlockedInteractionColor
Color of the blocked interaction overlay.
Declaration
public Color BlockedInteractionColor { get; }
Property Value
Type | Description |
---|---|
Color |
HighlightColor
Color of the highlight border.
Declaration
public Color HighlightColor { get; }
Property Value
Type | Description |
---|---|
Color |
HighlightThickness
Thickness of the highlight border in pixels.
Declaration
public float HighlightThickness { get; }
Property Value
Type | Description |
---|---|
Single |
MaskingColor
Color of the masking overlay.
Declaration
public Color MaskingColor { get; }
Property Value
Type | Description |
---|---|
Color |
Methods
ApplyThemeStyleSheetTo(VisualElement)
Applies a Theme-specific style to a VisualElement, removing all other styles except the base one
Declaration
public void ApplyThemeStyleSheetTo(VisualElement target)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | target | VisualElement to which the style should apply (usually, you want to do this to the root) |