docs.unity3d.com
    Show / Hide Table of Contents

    Class TutorialStyles

    Controls masking and highlighting styles, and style sheets for the tutorials.

    Inheritance
    Object
    TutorialStyles
    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)

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023