Table of Contents

Class FSprite

Namespace
Global
Assembly
Assembly-CSharp.dll
public class FSprite : FFacetElementNode
Inheritance
FSprite
Derived
Inherited Members

Constructors

FSprite()

public FSprite()

FSprite(FAtlasElement, bool)

public FSprite(FAtlasElement element, bool quadType = true)

Parameters

element FAtlasElement
quadType bool

FSprite(string, bool)

public FSprite(string elementName, bool quadType = true)

Parameters

elementName string
quadType bool

Fields

_alphaColor

public Color _alphaColor

Field Value

Color

_anchorX

public float _anchorX

Field Value

float

_anchorY

public float _anchorY

Field Value

float

_areLocalVerticesDirty

public bool _areLocalVerticesDirty

Field Value

bool

_color

public Color _color

Field Value

Color

_facetTypeQuad

public bool _facetTypeQuad

Field Value

bool

_isMeshDirty

public bool _isMeshDirty

Field Value

bool

_localRect

public Rect _localRect

Field Value

Rect

_localVertices

public Vector2[] _localVertices

Field Value

Vector2[]

_textureRect

public Rect _textureRect

Field Value

Rect

defaultAnchorX

public static float defaultAnchorX

Field Value

float

defaultAnchorY

public static float defaultAnchorY

Field Value

float

Properties

anchorX

public virtual float anchorX { get; set; }

Property Value

float

anchorY

public virtual float anchorY { get; set; }

Property Value

float

boundsRect

[Obsolete("FSprite's boundsRect is obsolete, use textureRect instead")]
public Rect boundsRect { get; }

Property Value

Rect

color

public virtual Color color { get; set; }

Property Value

Color

height

public virtual float height { get; set; }

Property Value

float

localRect

public virtual Rect localRect { get; }

Property Value

Rect

textureRect

public virtual Rect textureRect { get; }

Property Value

Rect

width

public virtual float width { get; set; }

Property Value

float

Methods

GetAnchor()

public Vector2 GetAnchor()

Returns

Vector2

GetTextureRectRelativeToContainer()

public Rect GetTextureRectRelativeToContainer()

Returns

Rect

HandleElementChanged()

public override void HandleElementChanged()

PopulateRenderLayer()

public override void PopulateRenderLayer()

Redraw(bool, bool)

public override void Redraw(bool shouldForceDirty, bool shouldUpdateDepth)

Parameters

shouldForceDirty bool
shouldUpdateDepth bool

SetAnchor(float, float)

public void SetAnchor(float newX, float newY)

Parameters

newX float
newY float

SetAnchor(Vector2)

public void SetAnchor(Vector2 newAnchor)

Parameters

newAnchor Vector2

UpdateLocalVertices()

public virtual void UpdateLocalVertices()