Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 void OnDisable()
 {
     propertyCodeBuilder = null;
     aotCodeBuilder      = null;
 }