How to destroy demolition fragments after delay

1.	Create Cube, this will be the cube which will be demolished in runtime. 

2.	Set its name to "Brick", position to [0,5,0], rotation to [30, 0, 50] and scale to [2,1,1]

3.	Remove it's Box Collider because Rigid component will add its own collider.

4.	Create another Cube, this will be a ground cube which will be used for collision.

5.	Set its name to "Ground", position to [0,0,0] and scale to [5,1,5]

6.	Add RayFire Rigid component to Brick.

7.	Set Rigid Initialization to At Start. 

8.	Set Simulation type to Dynamic.

9.	Set Object type to Mesh.

10.	Set Demolition type to Runtime.

11.	In Fading properties enable On Demolition property. Fading allows you to destroy demolition fragments or activated objects after some delay.

12.	Set Life Type to By Simulation And Life Time. It means that the object will be simulated and only when it gets rest will the Life Time timer start ticking. Object will start Fade when the Life Time timer will stop ticking.

13.	Set Life Time to 2 seconds and Life Variation to 1 second. It means that every fragment will have Life Time in a random range between 2 and 3 (2+1) seconds.

14.	Set Fade Type to Scale Down. This type allows the fragments to slowly scale fragments to [0,0,0] scale and they destroy them completely.

15.	Start Play Mode. 

	Brick will fall down and will be demolished to fragments. Notice how fragments start to scale down to [0,0,0] after several seconds and getting destroyed at the end.

16.	Turn Off Play Mode. 

17.	Select Brick, in Fading properties set Fade Type to Sim Exclude.

18.	Start Play Mode. 

	Brick will fall down and will be demolished to fragments. This nothing noticeable won’t happen but if you will select one of the fragments you will see that it is already lost or about to lose its Collider, Rigid Body and RayFire Rigid components. This Fade Type allows you to keep all meshes in scene but remove objects from the physics world to save resources.

19.	Turn Off Play Mode. 

	Now let's fade Brick itself.

20.	Select Brick and set Demolition Type to None.

21.	Start Play Mode.

22.	Click on the Fade button on top of Brick's RayFireRigid component UI.

	In this way you can manually fade any object with Rigid component, to fade objects inside your code you can use RayFire Rigid's public method Fade().
	Also keep in mind that you can initiate fading when Inactive or Kinematic objects get activated, to do so enable On Activation property in Fading properties.