Class TutorialStyles
Controls masking and highlighting styles, and style sheets for the tutorials.
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Tutorials.Editor
Assembly: Unity.Tutorials.Editor.dll
Syntax
public class TutorialStyles : ScriptableObject
Fields
DarkThemeStyleSheet
Used when the Professional Editor Theme is chosen.
Declaration
[Tooltip("Used when the Professional Editor Theme is chosen.")]
public StyleSheet DarkThemeStyleSheet
Field Value
| Type | Description |
|---|---|
| StyleSheet |
LightThemeStyleSheet
Used when the Personal Editor Theme is chosen.
Declaration
[Header("Style Sheets")]
[Tooltip("Used when the Personal Editor Theme is chosen.")]
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 |
|---|---|
| float |
MaskingColor
Color of the masking overlay.
Declaration
public Color MaskingColor { get; }
Property Value
| Type | Description |
|---|---|
| Color |
Methods
AddCustomStyleSheet(VisualElement)
Add the DarkThemeStyleSheet or LightThemeStyleSheet (based on editor theme) to the given VisualElement.
Declaration
public void AddCustomStyleSheet(VisualElement target)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | target | The VisualElement on which to set the right Stylesheet |