Forum rules - please read before posting.

Referencing scene object to asset

edited March 24 in Technical Q&A

As we already know,
Usually, we can't reference scene object to asset through inspector,
but somehow Adventure Creator is able to do that using Constant Id on It's Action List Asset,
I wonder how to use AC's Constant Id so i can reference scene object to my own Script.
Anyone? :)

Comments

  • The ConstantID script has a series of GetComponent static functions that return a component based on a given ID number.

    Example:

    Hotspot myHotspot = ConstantID.GetComponent<Hotspot> (1234);
    
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.