System.Action OnCompileStarted { get; set; }

robot_2Generated
code_blocksInput

Description

The OnCompileStarted property is an event handler that is invoked when a compilation process begins within a CompileGroup. This property allows you to attach custom logic that should be executed at the start of the compilation process.

Usage

To use the OnCompileStarted property, assign a method or lambda expression to it that matches the System.Action delegate signature. This method will be called whenever a compilation starts.

Example

// Example of using OnCompileStarted
CompileGroup compileGroup = new CompileGroup();

// Assign a method to the OnCompileStarted event
compileGroup.OnCompileStarted = () => {
    // Custom logic to execute when compilation starts
    Log.Info("Compilation has started.");
};

// Start a compilation process
compileGroup.BuildAsync();