Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.DontRotateSprite Class Reference

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...

Inheritance diagram for PlatformerPro.DontRotateSprite:

Protected Attributes

float initialRotation
 The initial z rotation. More...
 
Transform myTransform
 Cached transform reference. More...
 
Character character
 Cached character reference. More...
 
Vector3 relativeOffset
 Store the relative offset. More...
 

Detailed Description

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).

Member Data Documentation

◆ character

Character PlatformerPro.DontRotateSprite.character
protected

Cached character reference.

◆ initialRotation

float PlatformerPro.DontRotateSprite.initialRotation
protected

The initial z rotation.

◆ 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: