You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, you can install this by adding this as a submodule to your project.
git submodule add https://github.com/InitialPrefabs/ReactiveDisposal.git <path-to-desired-directory>
// Example assuming that your root directory is your project's home
git submodule add https://github.com/InitialPrefabs/ReactiveDisposal.git Assets/ReactiveDisposal
Usage
All derivative systems should derive from the ReactiveDisposalSystem<T>, where T is confined to a struct,
implements an ISystemStateComponentData and IDisposable interface.
unsafe struct UnmanagedData : ISystemStateComponentData, IDisposable {
public int* Value;
public void Dispose() {
if (Value != null) {
Memory.Free(Value);
}
}
}