DeckStacker v1.0
A card manager plugin for Unity games.
 
Loading...
Searching...
No Matches
DeckStacker.DSUIScaleUpdater Class Reference
Inheritance diagram for DeckStacker.DSUIScaleUpdater:

Static Public Attributes

static Canvas cameraCanvas = null
 
static RectTransform canvasRTransform = null
 

Detailed Description

This component should be attached to the Universal DeckStacker Canvas.

"Universal DeckStacker Canvas" (UDC) refers to the parent Canvas of all stacks in the scene.

This script helps with maintaining card positions after screensize changes, and providing the UDC to code that needs to convert mouse position to local positions on the canvas (card grabbing).

Field Documentation

◆ cameraCanvas

Canvas DeckStacker.DSUIScaleUpdater.cameraCanvas = null
static

Static value that stores reference to the Universal DeckStacker Canvas.

Every card's DSCardGrabber needs access to the Universal DeckStacker Canvas.
This is also the canvas that references the main camera of the scene that is rendering the Canvas.

◆ canvasRTransform

RectTransform DeckStacker.DSUIScaleUpdater.canvasRTransform = null
static

Static value that stores reference to the Universal DeckStacker Canvas's RectTransform.

Every card's DSCardGrabber needs access to the Universal DeckStacker Canvas.


The documentation for this class was generated from the following file: