Class CanvasBackground
A CanvasBackground is a VisualElement used as the background of a Canvas.
Implements
Inherited Members
      VisualElement.ExecuteDefaultAction(EventBase)
    
    
      VisualElement.Focus()
    
    
    
    
    
    
    
      VisualElement.Overlaps(Rect)
    
    
    
      VisualElement.ToString()
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      VisualElement.GetFirstOfType<T>()
    
    
      VisualElement.GetFirstAncestorOfType<T>()
    
    
    
    
    
    
      VisualElement.canGrabFocus
    
    
      VisualElement.focusController
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      VisualElement.cacheAsBitmap
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
    
    
      CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
    
    
      CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
    
    
      CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
    
    
    
    
    
    
    
    
    
    
    
  Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class CanvasBackground : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
  Constructors
| Name | Description | 
|---|---|
| CanvasBackground() | Instantiates a CanvasBackground element.  | 
      
Fields
| Name | Description | 
|---|---|
| ussClassName | 
Properties
| Name | Description | 
|---|---|
| drawPoints | Either draw points or lines.  | 
      
| nextGridScaleFactor | The scale factor to use for the next grid.  | 
      
| offset | The offset of the grid.  | 
      
| scale | The scale factor to use for the grid.  | 
      
| spacing | The spacing between lines or points.  |