Skip to content

Commit 304d0d0

Browse files
Merge pull request #79 from moz-moz/feature/skip-csproj-patching
Skip patching .csproj files when assembly definitions are available
2 parents d153ab6 + d03e0cc commit 304d0d0

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Assets/Live2D/Cubism/Editor/CubismAssetProcessor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class CubismAssetProcessor : AssetPostprocessor
2828
{
2929
#region Unity Event Handling
3030

31+
#if !UNITY_2017_3_OR_NEWER
3132
/// <summary>
3233
/// Called by Unity. Makes sure <see langword="unsafe"/> code is allowed.
3334
/// </summary>
@@ -36,6 +37,7 @@ public static void OnGeneratedCSProjectFiles()
3637
{
3738
AllowUnsafeCode();
3839
}
40+
#endif
3941

4042

4143
/// <summary>

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [Unreleased] - ####-##-##
8+
9+
### Changed
10+
11+
- Change `OnGeneratedCSProjectFiles` function to be disabled in Unity 2017.3 and later by [@moz-moz](https://github.com/moz-moz)
12+
13+
714
## [5-r.2] - 2024-04-04
815

916
### Added

0 commit comments

Comments
 (0)