void Setup() { // get root directory var rootDirectory = EditorHelper.GetFrameworkRootDirectory(this); if (rootDirectory == null) { Debug.LogWarning("Invalid directory structure"); return; } // create builder aotCodeBuilder = new AotCodeBuilder(rootDirectory); aotCodeBuilder.LoadSettings(); propertyCodeBuilder = new PropertyCodeBuilder(rootDirectory); propertyCodeBuilder.LoadSettings(); implicitConverterCodeBuilder = new ImplicitConverterCodeBuilder(rootDirectory); implicitConverterCodeBuilder.LoadSettings(); }
void OnDisable() { propertyCodeBuilder = null; aotCodeBuilder = null; }