Anti-Cheat Toolkit
2024.0.0
Multi-purpose anti-cheat solution for Unity Engine
|
Inherits KeepAliveBehaviour< SpeedHackProofTime >.
Static Public Member Functions | |
static void | Init () |
static void | Dispose () |
Public Attributes | |
bool | keepAlive |
Properties | |
static float? | time [get] |
static float? | unscaledTime [get] |
static float? | deltaTime [get] |
static float? | unscaledDeltaTime [get] |
static float? | realtimeSinceStartup [get] |
static float? | timeSinceLevelLoad [get] |
static T | Instance [get, protected set] |
Speed-hack resistant Time.* alternative. Does proxies to the regular Time.* APIs until actual speed hack is detected.
Requires running SpeedHackDetector to operate properly. Make sure to start SpeedHackDetector before calling Init().
Uses Unity's Time.* APIs until speed hack is detected and switches to the speed-hack resistant time since then. May be unreliable in WebGL and other sandboxed environments.
|
inlinestatic |
Call to add to the scene and force internal initialization. Gets called automatically when necessary if not initialized.
Make sure to call it after you setup and run SpeedHackDetector.
|
inlinestatic |
Call to remove from scene and clean internal resources.
|
inherited |
Will survive new level (scene) load if checked. Otherwise it will be destroyed.
On dispose Behaviour follows 2 rules:
|
staticget |
Speed-hack resistant analogue on Unity's Time.time API.
|
staticget |
Speed-hack resistant analogue on Unity's Time.unscaledTime API.
|
staticget |
Speed-hack resistant analogue on Unity's Time.deltaTime API.
|
staticget |
Speed-hack resistant analogue on Unity's Time.unscaledDeltaTime API.
|
staticget |
Speed-hack resistant analogue on Unity's Time.realtimeSinceStartup API.
|
staticget |
Speed-hack resistant analogue on Unity's Time.timeSinceLevelLoad API.
|
staticgetprotected setinherited |
Allows reaching public properties from code. Can be null if behaviour does not exist in scene or if accessed at or before Awake phase.