Class TilePaletteClipboardElement
A Visual Element which handles and displays a Tile Palette Clipboard. A Tile Palette Clipboard shows the Active Palette for Grid Painting and allows users to use the Active Brush to assign and pick items for painting.
Implements
Inherited Members
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.TryGetBinding(BindingId, out Binding)
VisualElement.TryGetDataSourceContext(BindingId, out DataSourceContext)
VisualElement.TryGetLastBindingToUIResult(in BindingId, out BindingResult)
VisualElement.TryGetLastBindingToSourceResult(in BindingId, out BindingResult)
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
CallbackEventHandler.NotifyPropertyChanged(in BindingId)
Namespace: UnityEditor.Tilemaps
Assembly: Unity.2D.Tilemap.Editor.dll
Syntax
[UxmlElement]
public class TilePaletteClipboardElement : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler
Constructors
TilePaletteClipboardElement()
Initializes and returns an instance of TilePaletteClipboardElement.
Declaration
public TilePaletteClipboardElement()
Properties
clipboardMouseGridPosition
The last active grid position on the clipboard.
Declaration
public Vector3Int clipboardMouseGridPosition { get; }
Property Value
Type | Description |
---|---|
Vector3Int |
clipboardUnlocked
Whether the clipboard is unlocked for editing.
Declaration
public bool clipboardUnlocked { get; set; }
Property Value
Type | Description |
---|---|
bool |
Events
clipboardUnlockedChanged
Callback when the clipboard unlock status has changed
Declaration
public event Action<bool> clipboardUnlockedChanged
Event Type
Type | Description |
---|---|
Action<bool> |
onBrushPicked
Callback when the active Brush does a Pick on the Clipboard.
Declaration
public event Action onBrushPicked
Event Type
Type | Description |
---|---|
Action |