Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

InitialPrefabs/ReactiveDisposalSamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactive Disposal Samples

A few samples to show how to implement and use ReactiveDisposal.

Main documentation can be found on that project's README and wiki instead.

How to initialize the repository?

This repository uses submodules so please follow the instruction below. The minimum version of Unity that has been verified to work is 2019.2.x+.

$ git clone https://github.com/InitialPrefabs/ReactiveDisposalSamples.git
$ cd ReactiveDisposalSamples
$ git submodule init && git submodule update

How does this sample work?

In SampleScene there exists a single SpriteRenderer which will be converted into its entity based format. Do note that the SpriteRenderer will be injected, not converted and destroyed.

To dispose the SpriteRendererBlob press the space bar and the entity and its component will be disposed of, thus releasing the memory associated with it.

When destroyed, the SpriteRenderer itself won't be destroyed, this allows you to repool this SpriteRenderer or destroy it manually yourself.

Releases

No releases published

Packages

No packages published

Languages