The O.G. Virtual learning! Buy one, get 2 more Lifetime Memberships! - Click Here!

AddReferenceFromFile, am I using it correctly?

Home 4 Forums iOS / tvOS Starter Kits The Story Tellers Kit 2 for iOS or tvOS Apps AddReferenceFromFile, am I using it correctly?

This topic contains 2 replies, has 1 voice, and was last updated by  Martin Ortiz 3 years, 4 months ago.

  • May 20, 2018 at 1:45 pm #184019

    Under Events, which is triggered when puzzle finishes (for example the cheer.wav is played correctly)

    I want to add emitters at runtime, that is, dynamically create them. I tried AddReferenceFromFile, but it does not seem to do what I thought it would, which is to add the emitters into scene at this point in time.

    (I want to do it this way, as I still can not tell if emitters are running even when hidden).

    Here is raw plist text.
    Sparkles.sks – sks file with 3 emitters in it.

    <key> AddReferenceFromFile</key>



  • May 20, 2018 at 2:25 pm #184020

    Argh, I checked and AddReferenceFromFile had a blank space in front of it, but when I fixed that, it still did not work….


  • May 20, 2018 at 3:55 pm #184021

    Ok, I think I see the issue, only objects derived from “Element” get grabbed from sks file and added into scene. Emitters are not derived from “Element”.

You must be logged in to reply to this topic.

Know what an affiliate program is? You make money just by sharing links to our site! Win. Win.

Earn when you refer any buyer here! 30 day tracking. Commissions are 33%-50% and recur on subscription products!

Uh oh, missing your affiliate ID. Create one real quick