Example #1
0
        static string[] OnWillSaveAssets(string[] paths)
        {
            if (!IsEnabled)
            {
                return(paths);
            }

            PlasticAssetsProcessor.CheckoutOnSourceControl(paths);
            return(paths);
        }
Example #2
0
        internal static void Enable(
            IPlasticAPI plasticApi,
            IAssetStatusCache assetStatusCache)
        {
            PlasticAssetsProcessor.RegisterPlasticAPI(plasticApi);
            AssetModificationProcessor.RegisterAssetStatusCache(assetStatusCache);

            AssetPostprocessor.IsEnabled         = true;
            AssetModificationProcessor.IsEnabled = false;
        }