PrefabExtensions.

Instantiate(Prefab, Vector3, Vector3, Vector3) Method

Summary

Instantiates a Prefab and a applies a transform to all the entites.
Namespace
StrideToolkit.Engine
Containing Type
PrefabExtensions

Syntax

public static List<Entity> Instantiate(this Prefab prefab, ref Vector3 translation, ref Vector3 rotationEulerAngles, ref Vector3 scale)

Parameters

Name Type Description
prefab Prefab The Prefab to instantiate.
translation Vector3 The Vector3 to translate the entities by.
rotationEulerAngles Vector3 The X, Y and Z rotations in euler angles to rotate the entities by.
scale Vector3 The Vector3 to scale the entities by.

Return Value

Type Description
List<Entity> The instatiated and translated entities.