You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two overloads for AddComponent method, and they are not so convenient to use.
T AddComponent<T>(EntityIdentity)whereT:Component;
T AddComponent<T>(EntityIdentity,paramsobject[] args)whereT:Component;
Using params object[] args destroys the whole advantages of having language server intelli-sense. There are no suggestions on what we can pass into the arguments.
Besides, this using reflection to create instance is also a bit slower.
Instead, I'd suggest adding this overload:
T AddComponent<T>(EntityIdentity,Tvalue)whereT:Component;
The method becomes much more shorter and nicer to use, considering the example below:
There are two overloads for
AddComponent
method, and they are not so convenient to use.Using
params object[] args
destroys the whole advantages of having language server intelli-sense. There are no suggestions on what we can pass into the arguments.Besides, this using reflection to create instance is also a bit slower.
Instead, I'd suggest adding this overload:
The method becomes much more shorter and nicer to use, considering the example below:
The text was updated successfully, but these errors were encountered: