Skip to content

Commit 5c42716

Browse files
authored
Fix #345 and #299
1 parent aef6c4e commit 5c42716

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Plugins/Editor/Scripts/Control/Managers/InternalCSGModelManager.Lifetime.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
31
using UnityEngine;
4-
using System.Linq;
5-
using UnityEngine.SceneManagement;
6-
using UnityEditor.SceneManagement;
72
using UnityEditor;
83
using InternalRealtimeCSG;
9-
using System.Reflection;
10-
using UnityEngine.Rendering;
11-
using System.Runtime.InteropServices;
124

135
namespace RealtimeCSG
146
{
@@ -20,6 +12,9 @@ internal partial class InternalCSGModelManager
2012
internal static NativeMethods External;
2113

2214
#region Clear
15+
#if UNITY_2019_4_OR_NEWER
16+
[RuntimeInitializeOnLoadMethod( RuntimeInitializeLoadType.SubsystemRegistration )]
17+
#endif
2318
public static void Clear()
2419
{
2520
BrushOutlineManager.ClearOutlines();

0 commit comments

Comments
 (0)