Hi,
I’ve been developing and rewriting some of our scripts and I noticed, that with the new script attributes it is possible to have an array of strings, while that is nice and saves me the struggle of parsing through a comma separated string to get several values,
it would be super awesome if this would also be possible for entities … it could basically look absolutely the same as the string array, all I need is to be able to do is to fill several entities into one attribute, so that I can trigger a certain event on all of them at once.
Is this something that could be possible?
Did I just not declare my attribute right
TriggerClick.attributes.add('actions', { type: 'entity', title: 'Actions: ', default: [], array: true, description: "The actions which should be triggered when the object is clicked."});
or is it something you guys could add to the engine?
It would really help a lot as it is something me and my colleague have been struggling with since we started using PlayCanvas and something we always had to find workarounds for.
If in the future all attribute types could be an array or not that would of course be the best, but if for now entities could be…