C# Class Svelto.Context.GameObjectFactory

Inheritance: Factories.IGameObjectFactory
显示文件 Open project: sebas77/Svelto-ECS

Public Methods

Method Description
Build ( GameObject prefab ) : GameObject

Register a prefab to be built later using a string ID.

Build ( string prefabName ) : GameObject
GameObjectFactory ( ) : System.Collections.Generic
RegisterPrefab ( GameObject prefab, string prefabName, GameObject parent = null ) : void

Method Details

Build() public method

Register a prefab to be built later using a string ID.
public Build ( GameObject prefab ) : GameObject
prefab UnityEngine.GameObject original prefab
return UnityEngine.GameObject

Build() public method

public Build ( string prefabName ) : GameObject
prefabName string
return UnityEngine.GameObject

GameObjectFactory() public method

public GameObjectFactory ( ) : System.Collections.Generic
return System.Collections.Generic

RegisterPrefab() public method

public RegisterPrefab ( GameObject prefab, string prefabName, GameObject parent = null ) : void
prefab UnityEngine.GameObject
prefabName string
parent UnityEngine.GameObject
return void