- GHPluginCore
- GHPluginLogger
- #ctor(sourceName)
- #ctor(logger)
- LogActiveSceneData(logAllSceneObjectsData)
- LogActiveSceneGameObjectsNameAndParent()
- LogAllGameObjectData(gameObject,logDataOfAllChildGameObjects,propertyNamesFilter)
- LogException(exception)
- LogFileSystem(fileSystem)
- LogFolder(folder)
- LogGameObjectNameAndParent(gameObject,logChildObjects)
- LogInfo(msg)
- LogSceneData(scene,logAllSceneObjectsData)
- LogSceneGameObjectsNameAndParent(scene)
- GHPluginUnityUtilityLogger
- #ctor()
- GenerateUnitySceneLogFileForActiveScene(outputPath,onlyLogActiveGameObjects,logAllComponentsData,logAllFieldsData,logAllPropertiesData,logAllMethodsData)
- GenerateUnitySceneLogFileForGameObject(gameObject,outputPath,onlyLogActiveGameObjects,logAllComponentsData,logAllFieldsData,logAllPropertiesData,logAllMethodsData)
- GenerateUnitySceneLogFileForScene(scene,outputPath,onlyLogActiveGameObjects,logAllComponentsData,logAllFieldsData,logAllPropertiesData,logAllMethodsData)
- GHPluginUtilities
- GreyOSProgram
- GreyOSProgramManager
GHPluginCoreLib
The GHPluginCore class can be inherited from by your BepInEx plugin, however it is not mandatory for your BepInEx plugin to inherit from this class. The GHPluginCore class is responsible for implementing and exposing the functionality that this library offers (e.g. the ability to create and implement custom programs that can be used in GreyOS). It can be accessed through its "instance" field.
An instance of the GreyOSProgramManager, which allows you to register custom programs that can be executed and used in GreyOS, the operating system which a player's in-game computer runs on.
An instance of the GHPluginCore class which can be used to access instances of other classes like the GreyOSProgramManager.
This method must be called in the Awake method of your BepInEx plugin, preferably at the start of it if possible. It is responsible for executing crucial initialization procedures to ensure that the library works correctly.
This method has no parameters.
GHPluginCoreLib
The GHPluginLogger class allows you to log messages to the BepInEx console. It contains various helper methods to make logging much more convenient.
Name | Type | Description |
---|---|---|
sourceName | System.String |
Name | Type | Description |
---|---|---|
logger | BepInEx.Logging.ManualLogSource |
Logs all properties for the currently active Scene in the game, the second parameter specifies whether the properties of all GameObjects in the Scene should be logged as well.
Name | Type | Description |
---|---|---|
logAllSceneObjectsData | System.Boolean |
Logs the names of all the GameObjects in the currently active Scene in the game as well as the names of their parents.
This method has no parameters.
Logs all properties of a GameObject by default. It can also be used to log all properties of the GameObject and its children. The third parameter can be used to specify which properties of the GameObjects being logged should not be logged to the BepInEx debug console.
Name | Type | Description |
---|---|---|
gameObject | UnityEngine.GameObject | |
logDataOfAllChildGameObjects | System.Boolean | |
propertyNamesFilter | System.Collections.Generic.List{System.String} |
Logs information about an exception, including its message and its stack trace.
Name | Type | Description |
---|---|---|
exception | System.Exception |
Logs the names of all the folders and files in a FileSystem instance.
Name | Type | Description |
---|---|---|
fileSystem | FileSystem |
Logs the name of the FileSystem.Carpeta instance specified in the first parameter as well as the name of all its subfolders and files.
Name | Type | Description |
---|---|---|
folder | FileSystem.Carpeta |
Logs the name of a GameObject as well as the name of its parent, the second parameter specifies whether the same should be done for the children of the GameObject specified in the first parameter.
Name | Type | Description |
---|---|---|
gameObject | UnityEngine.GameObject | |
logChildObjects | System.Boolean |
Logs a message to the BepInEx debug console.
Name | Type | Description |
---|---|---|
msg | System.String |
Logs all properties for a Scene in the game, the second parameter specifies whether the properties of all GameObjects in the Scene should be logged as well.
Name | Type | Description |
---|---|---|
scene | UnityEngine.SceneManagement.Scene | |
logAllSceneObjectsData | System.Boolean |
Logs the names of all the GameObjects in a Scene in the game as well as the names of their parents.
Name | Type | Description |
---|---|---|
scene | UnityEngine.SceneManagement.Scene |
GHPluginCoreLib
The GHPluginUnityUtilityLogger class can be used to generate log files containing comprehensive and detailed information about a Unity scene.
Default constructor method for the GHPluginUnityUtilityLogger class.
This constructor has no parameters.
GenerateUnitySceneLogFileForActiveScene(outputPath,onlyLogActiveGameObjects,logAllComponentsData,logAllFieldsData,logAllPropertiesData,logAllMethodsData) method
Generates a log file for the currently active Unity scene in the game.
Name | Type | Description |
---|---|---|
outputPath | System.String | |
onlyLogActiveGameObjects | System.Boolean | |
logAllComponentsData | System.Boolean | |
logAllFieldsData | System.Boolean | |
logAllPropertiesData | System.Boolean | |
logAllMethodsData | System.Boolean |
GenerateUnitySceneLogFileForGameObject(gameObject,outputPath,onlyLogActiveGameObjects,logAllComponentsData,logAllFieldsData,logAllPropertiesData,logAllMethodsData) method
Generates a log file for the GameObject specified in the first parameter.
Name | Type | Description |
---|---|---|
gameObject | UnityEngine.GameObject | |
outputPath | System.String | |
onlyLogActiveGameObjects | System.Boolean | |
logAllComponentsData | System.Boolean | |
logAllFieldsData | System.Boolean | |
logAllPropertiesData | System.Boolean | |
logAllMethodsData | System.Boolean |
GenerateUnitySceneLogFileForScene(scene,outputPath,onlyLogActiveGameObjects,logAllComponentsData,logAllFieldsData,logAllPropertiesData,logAllMethodsData) method
Generates a log file for the Unity scene specified in the first parameter.
Name | Type | Description |
---|---|---|
scene | UnityEngine.SceneManagement.Scene | |
outputPath | System.String | |
onlyLogActiveGameObjects | System.Boolean | |
logAllComponentsData | System.Boolean | |
logAllFieldsData | System.Boolean | |
logAllPropertiesData | System.Boolean | |
logAllMethodsData | System.Boolean |
GHPluginCoreLib
The GHPluginUtilities class exposes several helper methods for BepInEx plugin developers to use.
Returns the Component of one of the children of the GameObject specified in the first parameter with the same name as the one specified in the second parameter.
Name | Type | Description |
---|---|---|
gameObject | UnityEngine.GameObject | |
componentName | System.String |
Name | Description |
---|---|
T |
GHPluginCoreLib
The GreyOSProgram class is the class from which custom programs that are meant to be run on a player's in-game computer must inherit from.
The default constructor method for the GreyOSProgram class.
Name | Type | Description |
---|---|---|
programName | System.String | |
associatedAssetBundleFilePath | System.String | |
programPrefabName | System.String |
A constructor for the GreyOSProgram class.
Name | Type | Description |
---|---|---|
programName | System.String | |
programPrefab | UnityEngine.GameObject |
The file associated with the program, this field will automatically be assigned to at runtime provided that the program has been registered with the GreyOSProgramManager.
The name of the program.
The prefab associated with the program.
This method can be overridden by the program's class provided that it inherits from the GreyOSProgram class. This method is called when a player opens the program either through the File Explorer or the Terminal.
Name | Type | Description |
---|---|---|
comando | System.String[] | |
currentFile | FileSystem.Archivo | |
PID | System.Int32 | |
terminal | Terminal |
GHPluginCoreLib
The GreyOSProgramManager class is responsible for registering custom programs with GreyOS, the operating system that a player's in-game computer runs on. Programs registered with this class can be used through the in-game computer.
Default constructor for the GreyOSProgramManager class.
This constructor has no parameters.
Contains a list of all the programs registered with the GreyOSProgramManager so far.
Registers a program with the GreyOSProgramManager.
Name | Type | Description |
---|---|---|
greyOSProgram | GHPluginCoreLib.GreyOSProgram |
Unregisters a program from the GreyOSProgramManager.
Name | Type | Description |
---|---|---|
greyOSProgram | GHPluginCoreLib.GreyOSProgram |