Does anyone know if something like this would work for the Pin behavior?
We're looking for a way to automatically pin an instance to an UID when the instance is created in layout without requiring events by using a behavior property, a sort of equivalent of the child/parent tree system from C3, we thought it would be useful for menus and interfaces
Thanks in advance
Without any event that would be impossible. Anyway here chaining pin examples based on IID:
dropbox.com/scl/fi/e0fgk43vd22cd4s2fliuf/pin_to_pin_new.capx
dropbox.com/scl/fi/cqi3eikcq4s4f7qsbf6x1/snake_body_pin.capx
Develop games in your browser. Powerful, performant & highly capable.
I already know how to pin by using events, IID, loops, etc; my question was specifically about selecting an UID directly in the behavior script, but if that's not possible, then nevermind