Class BackgroundTexture
Element to compose a background texture from a collection of minimap elements.
Namespace: nickmaltbie.MinimapTools.Background
Assembly: cs.temp.dll.dll
Syntax
public class BackgroundTexture
Constructors
BackgroundTexture(IMinimap, Vector2Int, Nullable<Color>)
Create a background texture.
Declaration
public BackgroundTexture(IMinimap minimap, Vector2Int size, Color? color = null)
Parameters
Type | Name | Description |
---|---|---|
IMinimap | minimap | Minimap reference. |
Vector2Int | size | Size of texture in pixels. |
Nullable<Color> | color |
BackgroundTexture(IMinimap, Vector2Int, Texture2D)
Create a background texture.
Declaration
public BackgroundTexture(IMinimap minimap, Vector2Int size, Texture2D background)
Parameters
Type | Name | Description |
---|---|---|
IMinimap | minimap | Minimap reference. |
Vector2Int | size | Size of texture in pixels. |
Texture2D | background | Background of the minimap. |
Methods
AddElementToMinimap(IMinimapElement)
Add a given element to the minimap.
Declaration
public void AddElementToMinimap(IMinimapElement element)
Parameters
Type | Name | Description |
---|---|---|
IMinimapElement | element | Element to add to the minimap. |
GetTexture2D()
Get the Texture2D of this minimap.
Declaration
public Texture2D GetTexture2D()
Returns
Type | Description |
---|---|
Texture2D | Texture of the minimap. |