C# Class AnimatedTexture, madbricks

Inheritance: MonoBehaviour
Show file Open project: juliancruz87/madbricks Class Usage Examples

Public Properties

Property Type Description
_buffer Vector2
_columns int
_disableUponCompletion bool
_newMaterialInstance bool
_offset Vector2
_playOnEnable bool
_playOnce bool
_rows int
_scale Vector2

Public Methods

Method Description
ChangeMaterial ( Material newMaterial, bool newInstance = false ) : void
Play ( ) : void

Private Methods

Method Description
ApplyOffset ( ) : void
Awake ( ) : void
CalcTextureSize ( ) : void
OnDestroy ( ) : void
OnEnable ( ) : void
updateTiling ( ) : IEnumerator

Method Details

ChangeMaterial() public method

public ChangeMaterial ( Material newMaterial, bool newInstance = false ) : void
newMaterial Material
newInstance bool
return void

Play() public method

public Play ( ) : void
return void

Property Details

_buffer public property

public Vector2 _buffer
return Vector2

_columns public property

public int _columns
return int

_disableUponCompletion public property

public bool _disableUponCompletion
return bool

_newMaterialInstance public property

public bool _newMaterialInstance
return bool

_offset public property

public Vector2 _offset
return Vector2

_playOnEnable public property

public bool _playOnEnable
return bool

_playOnce public property

public bool _playOnce
return bool

_rows public property

public int _rows
return int

_scale public property

public Vector2 _scale
return Vector2