Add this class to a background image so it will act as your level's background
More...
Add this class to a background image so it will act as your level's background
◆ OnEnable()
virtual void MoreMountains.CorgiEngine.LevelBackground.OnEnable |
( |
| ) |
|
|
protectedvirtual |
On enable, we get the main camera
◆ SetZOffset()
virtual void MoreMountains.CorgiEngine.LevelBackground.SetZOffset |
( |
float |
newOffset | ) |
|
|
virtual |
Applies a new z offset for the background
- Parameters
-
◆ StartFollowing()
virtual void MoreMountains.CorgiEngine.LevelBackground.StartFollowing |
( |
| ) |
|
|
virtual |
Lets the background follow its camera
◆ StopFollowing()
virtual void MoreMountains.CorgiEngine.LevelBackground.StopFollowing |
( |
| ) |
|
|
virtual |
Prevents the background from following the camera
◆ _initialized
bool MoreMountains.CorgiEngine.LevelBackground._initialized = false |
|
protected |
◆ _initialOffsetZ
float MoreMountains.CorgiEngine.LevelBackground._initialOffsetZ |
|
protected |
◆ _initialParent
Transform MoreMountains.CorgiEngine.LevelBackground._initialParent |
|
protected |
◆ BackgroundOffset
Vector3 MoreMountains.CorgiEngine.LevelBackground.BackgroundOffset = Vector3.zero |
the offset to apply relative to the camera
◆ Following
bool MoreMountains.CorgiEngine.LevelBackground.Following = true |
if this is true, the background will be following the camera
◆ StartFollowingBtn
bool MoreMountains.CorgiEngine.LevelBackground.StartFollowingBtn |
test button to start following the camera
◆ StopFollowingBtn
bool MoreMountains.CorgiEngine.LevelBackground.StopFollowingBtn |
test button to stop following the camera
The documentation for this class was generated from the following file: