Summary
Instantiates a Prefab that contains a single Entity and applies a transform.
Syntax
public static Entity InstantiateSingle(this Prefab prefab, ref Vector3 translation, ref Vector3 rotationEulerAngles)
Parameters
| Name |
Type |
Description |
| prefab |
Prefab |
The Prefab to instantiate. |
| translation |
Vector3 |
The Vector3 to translate the entity by. |
| rotationEulerAngles |
Vector3 |
The X, Y and Z rotations in radians to rotate the entity by. |
Return Value
| Type |
Description |
| Entity |
The instatiated and translated Entity. |