Anti-Cheat Toolkit  6.1.0
Multi-purpose anti-cheat solution for Unity Engine
ObscuredTypesValidator Class Reference

Static Public Member Functions

static string[] ValidateProjectAssets (string[] assetPaths=null, InvalidPropertyFound callback=null, bool skipInteraction=false)
 
static int ValidateOpenedScenes (InvalidPropertyFound callback=null, bool skipInteraction=false)
 
static int ValidateBuildProfilesScenes (InvalidPropertyFound callback=null, bool skipInteraction=false)
 

Detailed Description

Class with utility functions to help with ACTk migrations after updates.

Member Function Documentation

◆ ValidateProjectAssets()

static string [] ValidateProjectAssets ( string[]  assetPaths = null,
InvalidPropertyFound  callback = null,
bool  skipInteraction = false 
)
inlinestatic

Traverses all prefabs and scriptable objects in the project and checks if they contain any Obscured types with anomalies.

Parameters
assetPathsSpecify target asset(s) or pass null to scan whole project.
callbackPass callback if you wish to process invalid objects.
skipInteractionSkips intro confirmation.
Returns
Array of paths that require migration.

◆ ValidateOpenedScenes()

static int ValidateOpenedScenes ( InvalidPropertyFound  callback = null,
bool  skipInteraction = false 
)
inlinestatic

Traverse all currently opened scenes and checks if they contain any non-valid Obscured types.

Parameters
callbackPass callback if you wish to process invalid objects.
skipInteractionSkips intro confirmation.
Returns
Number of invalid properties.

◆ ValidateBuildProfilesScenes()

static int ValidateBuildProfilesScenes ( InvalidPropertyFound  callback = null,
bool  skipInteraction = false 
)
inlinestatic

Traverses all scenes added to all BuildProfiles (ex BuildSettings) and checks if they contain any non-valid Obscured types.

Parameters
callbackPass callback if you wish to process invalid objects.
skipInteractionSkips intro confirmation.
Returns
Number of invalid properties.