Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
CharacterTextureAnimator
C# Class CharacterTextureAnimator, PaperCowboys
This is a basic character texture animator. It's capable of rendering a character in standstill form, animated moving form; and also supports texture scaling for left and right directional movement.
Inheritance:
MonoBehaviour
Show file
Open project: Gamieon/PaperCowboys
Class Usage Examples
Public Properties
Property
Type
Description
animationMotor
AnimationMotor
mainColor
Color
movingFrames
Material[]
phase
int
speed
float
state
State,
stillFrame
Material
textureScale
Vector2
Public Methods
Method
Description
Awake
( ) :
void
Update
( ) :
void
Method Details
Awake()
public
method
public
Awake
( ) :
void
return
void
Update()
public
method
public
Update
( ) :
void
return
void
Property Details
animationMotor
public property
Determines how the animation will work (see enumeration)
public
AnimationMotor
animationMotor
return
AnimationMotor
mainColor
public property
The primary character color. This is assigned to the material.
public
Color
mainColor
return
Color
movingFrames
public property
The materials to show when the object is moving
public
Material[]
movingFrames
return
Material[]
phase
public property
The time phase for time-driven movement. If time is t, the motor pretends the time is (t + phase)
public
int
phase
return
int
speed
public property
The animation speed for time-driven animations
public
float
speed
return
float
state
public property
The current moving/not-moving state
public
State,
state
return
State,
stillFrame
public property
The material to show when the object is still
public
Material
stillFrame
return
Material
textureScale
public property
The texture scale. This is set by another component.
public
Vector2
textureScale
return
Vector2