Version 3.3.1.2

AOTGenerationConfig class

Namespace: Sirenix.Serialization
Assembly: Sirenix.OdinInspector.Editor
[SirenixEditorConfig]
public class AOTGenerationConfig : GlobalConfig<AOTGenerationConfig>, IGlobalConfigEvents
Contains configuration for generating an assembly that provides increased AOT support in Odin.
Inheritance

Constructors

AOTGenerationConfig()
public AOTGenerationConfig()

Fields

AutomateForAllAOTPlatforms
[Indent(1)]
[ToggleLeft]
[ShowIf("ShowAutomateConfig", true)]
public bool AutomateForAllAOTPlatforms

Properties

AOTFolderPath
The path to the AOT folder that the AOT .dll and linker file is created in, relative to the current project folder.
public string AOTFolderPath { get; }
AutomateBeforeBuilds

Whether to automatically scan the project and generate an AOT dll, right before builds. This will only affect platforms that are in the AutomateForPlatforms list.

**This will only work on Unity 5.6 and higher!**

public bool AutomateBeforeBuilds { get; set; }
AutomateForPlatforms
A list of platforms to automatically scan the project and generate an AOT dll for, right before builds. This will do nothing unless AutomateBeforeBuilds is true.
public List<BuildTarget> AutomateForPlatforms { get; }
DeleteDllAfterBuilds
Whether to automatically delete the generated AOT dll after a build has completed.
public bool DeleteDllAfterBuilds { get; set; }

Methods

GenerateDLL()
Generates an AOT DLL, using the current configuration of the AOTGenerationConfig instance.
public void GenerateDLL()
GenerateDLL(String, Boolean)
public void GenerateDLL(string folderPath, bool generateLinkXML = true)
Parameters
System.String folderPath

System.Boolean generateLinkXML

GetAOTSupportedTypes()
public List<Type> GetAOTSupportedTypes()
Returns
System.Collections.Generic.List<System.Type>

ScanProject()
Scans the entire project for types to support AOT serialization for.
public void ScanProject()
ShouldAutomationGeneration(BuildTarget)
public bool ShouldAutomationGeneration(BuildTarget target)
Parameters
UnityEditor.BuildTarget target

Returns
System.Boolean