Skip to main content
Participant
April 8, 2025
Question

Object Spawning and Despawning?

Hey everyone can anyone tell me if object spawning and despawning will work for this objective.   I want to create an asset that works as a trigger another item and when you untouch it the item disappears?  So an example I create a book.... A player touches it and it opens a page large so that they can read it and when they untouched a book or after several seconds the page disappears?   

Is object spawning and despawning the way to do this or is this not possible?  

 

Thanks, VR_Adventures

4 replies

BenSH
Community Manager
April 8, 2025

I'd recommend checking out this Asset Spawning Challenge tutorial for a practical example on how the spawning system works.

Community Events Calendar Sign up for this Month's MHCP Bonuses
SeeingBlue
Honored Contributor
April 8, 2025

You can certainly do that. The challenge Ben posted is a great place to get started.

Upcoming Events : Performance Pro - UI Unleashed - Building Responsive & Performant Interfaces Thursday June 19th 5:00 PM PT - Register June Programming Calendar
Inspiring
April 9, 2025

Like Seeingblue said you could do this using asset spawning but it might be simpler to just set the visibility of the object on/off.

Meta Employee
April 9, 2025

I agree with your suggestion to toggle the object's visibility on and off, as it will simplify the implementation. Additionally, using a text gizmo or UI to display dynamic text can effectively show different pages without the need to add extra page models or textures.