Xcode, Reality Composer, execute behaviors

Hi, I have a question about how to control behaviors from Xcode . I have loaded a RealityComposer file (.rcproject-file) to Xcode. In Xcode storyboard I made a button and executed a behavior, which I have implemented in RealityComposer before. This works great.

@IBAction func button(_ sender: Any) {
Anchor!.notifications.actionname.post()
}

But now I want the notification be executed when the rcproject file starts. So, when the .rcproject file starts, this behavior should be executed first. How can I do this??

Thanks

You should get all you need to know here:

https://stackoverflow.com/questions/54066091/how-can-i-run-some-code-when-the-scene-changes

Xcode, Reality Composer, execute behaviors
 
 
Q