Skip to content

Compatibility with "disabled Domain Reload" #345

@andreiagmu

Description

@andreiagmu

Considering my project has Domain Reload disabled, for faster Play Mode iteration:
With the current version, if I add some CSG shapes in the scene, save the scene, enter Play Mode, then exit Play Mode.
After returning to the Unity Editor, the CSG shapes vanish from the scene.

After adding the [RuntimeInitializeOnLoadMethod] attribute above the Clear() method from InternalCSGModelManager.Lifetime.cs, the issue is fixed.

#region Clear
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
public static void Clear()

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions