UnityEditor.PrefabUtility.CreatePrefab C# (CSharp) Метод

CreatePrefab() приватный Метод

private CreatePrefab ( string path, GameObject go ) : GameObject
path string
go UnityEngine.GameObject
Результат UnityEngine.GameObject
        public static GameObject CreatePrefab(string path, GameObject go)
        {
            ReplacePrefabOptions options = ReplacePrefabOptions.Default;
            return CreatePrefab(path, go, options);
        }

Same methods

PrefabUtility::CreatePrefab ( string path, GameObject go, [ options ) : GameObject

Usage Example

Пример #1
0
        public static GameObject CreatePrefab(string path, GameObject go)
        {
            ReplacePrefabOptions options = ReplacePrefabOptions.Default;

            return(PrefabUtility.CreatePrefab(path, go, options));
        }