Forum rules - please read before posting.

prefab with action

I must be missing something here.
I have a desk prefab with a Hotspot using an event.
But the script Im building in the prefab is not saving itself.
let me explain the best I can in hopes I'm just missing a step:

Place desk in game, position 0,0,0
Place Hotspot
Place interaction
Add some events in the new interaction.
Parent everything to the Main desk so its easy to drop a new one in later
I drag the prefab into the scen and see that everything is good besides the script events are all to default. Meaning I now need to redo each time I want to drop in a new desk.

Is there a way we can design a desk to be interactive in a prefab ?

Comments

  • Regular scene-based ActionLists (such as Interactions) cannot live as prefabs.  However, ActionList assets exist for just this reason.  In your Project windows Create menu, you can choose Create -> Adventure Creator -> ActionList asset, and create a list of Actions as an asset file.

    Your Hotspot can then reference this asset file, instead of the usual Interaction object in a scene.  Just change the "Interaction source" setting in it's Inspector from "In Scene" to "Asset File".
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.