Class MapBackgroundPreview
- Namespace
- TDMaker.Editor
- Assembly
- TDMaker.Editor.dll
Edit-mode stand-in for the painted map: a hidden, never-saved sprite object that shows the level's ground art in the Scene view while the Map Editor is open (the Level View only builds the ground in Play mode). It is removed before Play mode, assembly reloads and when the Map Editor closes, so scenes and builds never contain it.
[InitializeOnLoad]
public static class MapBackgroundPreview
- Inheritance
-
MapBackgroundPreview
- Inherited Members
Properties
Exists
Whether the preview object currently exists.
public static bool Exists { get; }
Property Value
Methods
Remove()
Removes the preview object.
public static void Remove()
Show(Sprite, Vector2, float)
Shows sprite with its pivot at pivot, or removes the preview when null.
public static void Show(Sprite sprite, Vector2 pivot, float opacity)
Parameters
spriteSpritepivotVector2opacityfloat