Class DestroyOnUserLeaveExtensions
- Namespace
- MonkeyLoader.Resonite
- Assembly
- MonkeyLoader.Resonite.Integration.dll
Contains an extension method to add FrooxEngine.DestroyOnUserLeave components targeting the local user to mod additions that rely on the local user being there to work.
public static class DestroyOnUserLeaveExtensions
- Inheritance
-
DestroyOnUserLeaveExtensions
- Inherited Members
Methods
DestroyWhenLocalUserLeaves(Slot)
Ensures that the given FrooxEngine.Slot will be destroyed when the local user leaves, and won't be saved either (marking it non-persistant).
public static DestroyOnUserLeave DestroyWhenLocalUserLeaves(this Slot slot)
Parameters
slot
SlotThe slot that should be non-persistant and destroyed when the local user leaves.
Returns
- DestroyOnUserLeave
The FrooxEngine.DestroyOnUserLeave component handling the destruction.