Version 2.1.0.0

AOTGenerationConfig class

Namespace: Sirenix.Serialization
Assembly: Sirenix.OdinInspector.Editor
[SirenixEditorConfig]
public class AOTGenerationConfig : GlobalConfig<AOTGenerationConfig>
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.
[DisableIf("EditorOnlyBuild")]
[TitleGroup("Generate AOT DLL", "Sirenix/Assemblies/AOT/Sirenix.Serialization.AOTGenerated.dll", TitleAlignments.Left, true, true, false, 0)]
[PropertyOrder(9)]
[Button(ButtonSizes.Large)]
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

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.