This allows multiple related components / systems to be registered from a single file.
s/name/names. This can be a single component name or an array.
What the Inspector should do:
For each package entry, populate the dropdown with every component name. Instead of appending component.name, concatenate component.names.
When injecting the <script>, check whether another related component has already injected it. For example, if we have already injected physics-body, then physics-joint will also have been registered from the same file, and the Inspector doesn't need to do anything. This perhaps already works.
This allows multiple related components / systems to be registered from a single file.
s/name/names
. This can be a single component name or an array.What the Inspector should do:
component.name
, concatenatecomponent.names
.<script>
, check whether another related component has already injected it. For example, if we have already injectedphysics-body
, thenphysics-joint
will also have been registered from the same file, and the Inspector doesn't need to do anything. This perhaps already works.