Hi,
I have a hotspot that when clicked on:
All parameters seem to pass on fine, but in the end when exiting the close-up, the spawned instance of the Sprite renderer prefab is not removed from the scene.
The hotspot itself is also spawned, and can be spawned anywhere in any scene, so I need to add/spawn the Sprite renderer prefab as opposed to teleport it from an off-scene location.
Here are screenshots of action lists and inspectors:
// Magnus
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
It may be that the "Object to remove" parameter is being mapped to the original prefab, rather than the instance of it in the scene.
You can force this distinction, however, by re-assigning this parameter in the Object: Add or remove Action that spawns it in.
At the bottom of this Action, set the Send to parameter field to a new GameObject parameter named e.g. "Spawned object". Then, use the ActionList: Set parameter Action to pass this to the ExitCloseUp asset's "Object to remove" parameter (replacing the existing one setting it to the original "Object to remove" parameter).
Yes, worked great! Thanks !!