Attach this to the character sprite (or 3D model) to stop it rotating in the Z axis. This is behaviour found in many retro games. This script needs to have its execution order set to be after the main character script (Character.cs).
More...
Attach this to the character sprite (or 3D model) to stop it rotating in the Z axis. This is behaviour found in many retro games. This script needs to have its execution order set to be after the main character script (Character.cs).
◆ character
Character PlatformerPro.DontRotateSprite.character |
|
protected |
Cached character reference.
◆ initialRotation
float PlatformerPro.DontRotateSprite.initialRotation |
|
protected |
◆ myTransform
Transform PlatformerPro.DontRotateSprite.myTransform |
|
protected |
Cached transform reference.
◆ relativeOffset
Vector3 PlatformerPro.DontRotateSprite.relativeOffset |
|
protected |
Store the relative offset.
The documentation for this class was generated from the following file: