HKI Core
Private Member Functions | Private Attributes | List of all members
HKI.Core.Misc.ScreenShotMaker Class Reference

This MonoBehaviour creates screenshots by pressing a key. Currently this script only works inside the Unity Editor (unsure why not at runtime). More...

Inheritance diagram for HKI.Core.Misc.ScreenShotMaker:

Private Member Functions

void Update ()
 
IEnumerator CaptureScreenshoot (bool withoutHUD)
 

Private Attributes

KeyCode CaptureKey = KeyCode.F8
 
string ScreenShotsPath = "Screenshots"
 
string Name = "Screen"
 
GameObject [] HudFreeScreenShotHideObjects
 
KeyCode CaptureKeyForHudFree = KeyCode.F9
 
int count = 0
 
bool [] oldStatus
 

Detailed Description

This MonoBehaviour creates screenshots by pressing a key. Currently this script only works inside the Unity Editor (unsure why not at runtime).

There are two kinds of screenshots that are possible 1st: a screenshot with all things that are visible 2nd: screenshots without some elements (for example if you want to exclude the HUD) all things that shouln't be visible should be in the HudFreeScreenShotHideObjects array.

Definition at line 14 of file ScreenShotMaker.cs.

Member Function Documentation

◆ CaptureScreenshoot()

IEnumerator HKI.Core.Misc.ScreenShotMaker.CaptureScreenshoot ( bool  withoutHUD)
inlineprivate

Definition at line 40 of file ScreenShotMaker.cs.

◆ Update()

void HKI.Core.Misc.ScreenShotMaker.Update ( )
inlineprivate

Definition at line 30 of file ScreenShotMaker.cs.

Member Data Documentation

◆ CaptureKey

KeyCode HKI.Core.Misc.ScreenShotMaker.CaptureKey = KeyCode.F8
private

Definition at line 17 of file ScreenShotMaker.cs.

◆ CaptureKeyForHudFree

KeyCode HKI.Core.Misc.ScreenShotMaker.CaptureKeyForHudFree = KeyCode.F9
private

Definition at line 22 of file ScreenShotMaker.cs.

◆ count

int HKI.Core.Misc.ScreenShotMaker.count = 0
private

Definition at line 26 of file ScreenShotMaker.cs.

◆ HudFreeScreenShotHideObjects

GameObject [] HKI.Core.Misc.ScreenShotMaker.HudFreeScreenShotHideObjects
private

Definition at line 21 of file ScreenShotMaker.cs.

◆ Name

string HKI.Core.Misc.ScreenShotMaker.Name = "Screen"
private

Definition at line 19 of file ScreenShotMaker.cs.

◆ oldStatus

bool [] HKI.Core.Misc.ScreenShotMaker.oldStatus
private

Definition at line 27 of file ScreenShotMaker.cs.

◆ ScreenShotsPath

string HKI.Core.Misc.ScreenShotMaker.ScreenShotsPath = "Screenshots"
private

Definition at line 18 of file ScreenShotMaker.cs.


The documentation for this class was generated from the following file: