Method CreateAdditionalEntity
CreateAdditionalEntity(Object)
Creates an additional entity in the destination world. The entity is associated with the given object. New entities should be created using this method since it ensures that the resulting entities have all data required for conversion correctly set up.
Declaration
public Entity CreateAdditionalEntity(Object uobject)
Parameters
Type | Name | Description |
---|---|---|
Object | uobject | The object that the new entity will be associated with. |
Returns
Type | Description |
---|---|
Entity | The newly created entity. |
CreateAdditionalEntity(Component)
Creates an additional entity in the destination world. The entity is associated with the GameObject of the given component. New entities should be created using this method since it ensures that the resulting entities have all data required for conversion correctly set up.
Declaration
public Entity CreateAdditionalEntity(Component component)
Parameters
Type | Name | Description |
---|---|---|
Component | component | A component of the GameObject that the new entity will be associated with. |
Returns
Type | Description |
---|---|
Entity | The newly created entity. |
CreateAdditionalEntity(Object, NativeArray<Entity>)
Creates multiple additional entities in the destination world. The entities are associated with the given object. New entities should be created using this method since it ensures that the resulting entities have all data required for conversion correctly set up.
Declaration
public void CreateAdditionalEntity(Object uobject, NativeArray<Entity> outEntities)
Parameters
Type | Name | Description |
---|---|---|
Object | uobject | The object that the new entities will be associated with. |
NativeArray<Entity> | outEntities | This will be filled with the newly created entities. |
CreateAdditionalEntity(Component, NativeArray<Entity>)
Creates multiple additional entities in the destination world. The entities are associated with the GameObject of the given component. New entities should be created using this method since it ensures that the resulting entities have all data required for conversion correctly set up.
Declaration
public void CreateAdditionalEntity(Component component, NativeArray<Entity> outEntities)
Parameters
Type | Name | Description |
---|---|---|
Component | component | A component of the GameObject that the new entities will be associated with. |
NativeArray<Entity> | outEntities | This will be filled with the newly created entities. |