C# Class Epigene.UI.UIImage

Image class for a simple image with multiple sprites
Inheritance: UIBaseObject
Show file Open project: fi-content2-games-platform/FIcontent.Gaming.Enabler.phenomobilecharactermanager Class Usage Examples

Public Properties

Property Type Description
blinkNumber int
blinkSpeed double

Protected Properties

Property Type Description
image UnityEngine.UI.Image
lockSprite bool
sprites UnityEngine.Sprite[]

Public Methods

Method Description
GetSprite ( ) : Sprite

Get the current sprite

UIImage ( object>.Dictionary dict, SortingOrder46 order = null ) : UnityEngine

Constructor for create ui image from dicitionary.

UIImage ( GameObject gameObject, Sprite sprites ) : UnityEngine

UIImage Ctor from basic elements

Protected Methods

Method Description
Parse ( object>.Dictionary dict ) : void

Parse the content of the dictionary and create a new gameobjet with this parameters

Method Details

GetSprite() public method

Get the current sprite
public GetSprite ( ) : Sprite
return UnityEngine.Sprite

Parse() protected method

Parse the content of the dictionary and create a new gameobjet with this parameters
protected Parse ( object>.Dictionary dict ) : void
dict object>.Dictionary
return void

UIImage() public method

Constructor for create ui image from dicitionary.
public UIImage ( object>.Dictionary dict, SortingOrder46 order = null ) : UnityEngine
dict object>.Dictionary
order SortingOrder46
return UnityEngine

UIImage() public method

UIImage Ctor from basic elements
public UIImage ( GameObject gameObject, Sprite sprites ) : UnityEngine
gameObject UnityEngine.GameObject
sprites UnityEngine.Sprite
return UnityEngine

Property Details

blinkNumber public property

Number of blinks requried
public int blinkNumber
return int

blinkSpeed public property

speed of blinking
public double blinkSpeed
return double

image protected property

/// Every image needs a sprite renderer ///
protected Image,UnityEngine.UI image
return UnityEngine.UI.Image

lockSprite protected property

protected bool lockSprite
return bool

sprites protected property

sprite sheets of this image
protected Sprite[],UnityEngine sprites
return UnityEngine.Sprite[]