Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.SortingArea Class Reference

Public Member Functions

 SortingArea (SortingArea lastArea)
 
 SortingArea (SortingArea area1, SortingArea area2)
 
 SortingArea (float _z, int _order)
 

Public Attributes

float z
 
int order
 
string layer
 
Color color
 
int scale = 100
 

Protected Member Functions

Color GetRandomColor ()
 

Protected Attributes

string orderAsString
 

Detailed Description

A data container for individual regions within a SortingMap.

Constructor & Destructor Documentation

◆ SortingArea() [1/3]

AC.SortingArea.SortingArea ( SortingArea  lastArea)

A Constructor that creates a new SortingArea based on the last one currently on the SortingMap.

◆ SortingArea() [2/3]

AC.SortingArea.SortingArea ( SortingArea  area1,
SortingArea  area2 
)

A Constructor that creates a new SortingArea by interpolating between two others.

◆ SortingArea() [3/3]

AC.SortingArea.SortingArea ( float  _z,
int  _order 
)

The default Constructor.

Member Data Documentation

◆ color

Color AC.SortingArea.color

The colour of the region, as used in the Scene window

◆ layer

string AC.SortingArea.layer

The sorting layer that SpriteRenderers that use FollowSortingMap will have when positioned within this region

◆ order

int AC.SortingArea.order

The order in layer that SpriteRenderers that use FollowSortingMap will have when positioned within this region

◆ scale

int AC.SortingArea.scale = 100

The factor by which characters that use FollowSortingMap will be scaled by when positioned at the bottom boundary of this region

◆ z

float AC.SortingArea.z

The lower boundary position along the Z axis