Table of Contents

Class FAtlas

Namespace
Global
Assembly
Assembly-CSharp.dll
public class FAtlas
Inheritance
FAtlas
Inherited Members

Constructors

FAtlas(string, string, string, int, bool)

public FAtlas(string name, string imagePath, string dataPath, int index, bool shouldLoadAsSingleImage)

Parameters

name string
imagePath string
dataPath string
index int
shouldLoadAsSingleImage bool

FAtlas(string, string, Texture, int, bool)

public FAtlas(string name, string dataPath, Texture texture, int index, bool textureFromAsset)

Parameters

name string
dataPath string
texture Texture
index int
textureFromAsset bool

FAtlas(string, Texture, int, bool)

public FAtlas(string name, Texture texture, int index, bool textureFromAsset)

Parameters

name string
texture Texture
index int
textureFromAsset bool

Fields

_dataPath

public string _dataPath

Field Value

string

_elements

public List<FAtlasElement> _elements

Field Value

List<FAtlasElement>

_elementsByName

public Dictionary<string, FAtlasElement> _elementsByName

Field Value

Dictionary<string, FAtlasElement>

_imagePath

public string _imagePath

Field Value

string

_index

public int _index

Field Value

int

_isSingleImage

public bool _isSingleImage

Field Value

bool

_isTextureAnAsset

public bool _isTextureAnAsset

Field Value

bool

_name

public string _name

Field Value

string

_texture

public Texture _texture

Field Value

Texture

_textureSize

public Vector2 _textureSize

Field Value

Vector2

Properties

dataPath

public string dataPath { get; }

Property Value

string

elements

public List<FAtlasElement> elements { get; }

Property Value

List<FAtlasElement>

imagePath

public string imagePath { get; }

Property Value

string

index

public int index { get; }

Property Value

int

isSingleImage

public bool isSingleImage { get; }

Property Value

bool

name

public string name { get; }

Property Value

string

texture

public Texture texture { get; }

Property Value

Texture

textureSize

public Vector2 textureSize { get; }

Property Value

Vector2

Methods

CreateAtlasFromSingleImage()

public void CreateAtlasFromSingleImage()

CreateNamedElement(string, float, float, float, float)

public FAtlasElement CreateNamedElement(string elementName, float leftX, float bottomY, float pixelWidth, float pixelHeight)

Parameters

elementName string
leftX float
bottomY float
pixelWidth float
pixelHeight float

Returns

FAtlasElement

CreateUnnamedElement(float, float, float, float)

public FAtlasElement CreateUnnamedElement(float leftX, float bottomY, float pixelWidth, float pixelHeight)

Parameters

leftX float
bottomY float
pixelWidth float
pixelHeight float

Returns

FAtlasElement

IsAsset()

public bool IsAsset()

Returns

bool

LoadAtlasData()

public void LoadAtlasData()

LoadTexture()

public void LoadTexture()

Unload()

public void Unload()

UpdateElement(FAtlasElement, float, float, float, float)

public void UpdateElement(FAtlasElement element, float leftX, float bottomY, float pixelWidth, float pixelHeight)

Parameters

element FAtlasElement
leftX float
bottomY float
pixelWidth float
pixelHeight float