PrefabExtensions.

InstantiateSingle(Prefab, Vector3, Quaternion, Vector3) Method

Summary

Instantiates a Prefab that contains a single Entity and applies a transform.
Namespace
StrideToolkit.Engine
Containing Type
PrefabExtensions

Syntax

public static Entity InstantiateSingle(this Prefab prefab, Vector3 translation, Quaternion rotation, Vector3 scale)

Parameters

Name Type Description
prefab Prefab The Prefab to instantiate.
translation Vector3 The Vector3 to translate the entity by.
rotation Quaternion The Quaternion to rotate the entity by.
scale Vector3 The Vector3 to scale the entity by.

Return Value

Type Description
Entity The instatiated and translated Entity.