Is there an easy way to copy and paste configured events?
Is there a way to copy and paste it that isn't easy?
Or do I have to manually generate each one for each that I need to make?
Is there an easy way to copy and paste configured events?
Is there a way to copy and paste it that isn't easy?
Or do I have to manually generate each one for each that I need to make?
No there's no easy way to copy the Events of a component. Why not just copy the whole component and then change what you need to change in the props?
The hard way is to
events
entry from the original component's JSON.This feels like a relatively easy enough “Copy event” or “Copy action” context menu on text lists in the popup. Similar to the “Copy binding” context menu.
In actual projects, it is very common to generate scripts for configured bindings.
At first you create thousands components to show the machine. Then, you realize you need script to control them....
It seems the somewhat less hard way is to
but it does feel like a copy event script feature could save some time when you set it up like nideyijuyidong mentioned, even once you're experienced sometimes you end up doing t that way
And, I just discovered you can paste the script to muliple objects, so:
This works best when the script is only self-referential to the object, but may work under other circumstances,