Give Page Feedback | API

Upgrading - Simple Cell Object Destroyers

The Simple Cell Object Destroyer has been renamed to the Simple Chunk Destroyer within SAM. You will need to create the component using the new Deep Space Labs component creation path.

Creating A Simple Chunk Destroyer Component

You can add this component by selecting a game object and then selecting from the Top Menu Bar:

Component -> Deep Space Labs -> -> SAM -> Secondary Components -> Simple Chunk Destroyer

Adding A Simple Chunk Destroyer Component From The Top Menu Bar GIF

or by selecting a game object and using the Add Component menu via its inspector:

Component -> Deep Space Labs -> -> SAM -> Secondary Components -> Simple Chunk Destroyer

Adding A Simple Chunk Destroyer Component From Add Component Menu GIF

Children To Destroy Per Frame -> Max Objects To Destroy In A Single Frame

The setting has been renamed to better reflect its function. It does not necessarily denote the number of Asset Chunks that will be destroyed in a single frame, but rather the total number of game objects (which might be the root Asset Chunk or its child game objects).

Remember, this destroyer will only search one level deep (that is to say, it will destroy all direct children of the root Asset Chunk before finally destroying the root Asset Chunk).

Yield Time (New Setting)

A new setting that allows you to specify the amount of time that will be yielded after the Max Objects To Destroy In A Single Frame limit is reached. You can also set it to 0 and the destroyer will yield for a single frame instead of a fixed time.

Assigning the Destroyer

Previously the Destroyer could be assigned to the Primary Cell Object Sub Controller component. Now, since Chunk Streamers handle chunk destruction/removal, the Destroyer can only be assigned to one of the Prefab Chunk Streamer components.