Asset<T>.

Instantiate(Transform, bool) Method

Summary

Clones the specified asset and returns the clone. Uses UnityEngine.Object.Instantiate(UnityEngine.Object,UnityEngine.Transform,System.Boolean). In the Unity Editor, it uses PrefabUtility.InstantiatePrefab instead.
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
Asset<T>

Syntax

public T Instantiate(Transform parent, bool worldPositionStays)

Parameters

Name Type Description
parent Transform
worldPositionStays bool

Return Value

Type Description
T