diff --git a/Assets/Live2D/Cubism/Editor/CubismAssetProcessor.cs b/Assets/Live2D/Cubism/Editor/CubismAssetProcessor.cs index c813e61b..a3c72acf 100644 --- a/Assets/Live2D/Cubism/Editor/CubismAssetProcessor.cs +++ b/Assets/Live2D/Cubism/Editor/CubismAssetProcessor.cs @@ -28,6 +28,7 @@ public class CubismAssetProcessor : AssetPostprocessor { #region Unity Event Handling +#if !UNITY_2017_3_OR_NEWER /// /// Called by Unity. Makes sure code is allowed. /// @@ -36,6 +37,7 @@ public static void OnGeneratedCSProjectFiles() { AllowUnsafeCode(); } +#endif /// diff --git a/CHANGELOG.md b/CHANGELOG.md index cf95a133..d89f8096 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [Unreleased] - ####-##-## + +### Changed + +- Change `OnGeneratedCSProjectFiles` function to be disabled in Unity 2017.3 and later by [@moz-moz](https://github.com/moz-moz) + + ## [5-r.2] - 2024-04-04 ### Added