Summary
Clones the specified asset and returns the clone.
Uses
UnityEngine.Object.Instantiate(UnityEngine.Object,UnityEngine.Vector3,UnityEngine.Quaternion)
.
In the Unity Editor, it uses PrefabUtility.InstantiatePrefab instead.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Containing Type
- Asset
<T>
Syntax
public T Instantiate(Vector3 position, Quaternion rotation)
Parameters
Name | Type | Description |
---|---|---|
position | Vector3 | |
rotation | Quaternion |
Return Value
Type | Description |
---|---|
T |