Constructor CustomPrefab
| Improve this Doc View SourceCustomPrefab(GameObject, bool)
Custom prefab.
Can fix references for Mock<T>s.
Can fix references for Mock<T>s.
Declaration
public CustomPrefab(GameObject prefab, bool fixReference)
Parameters
Type | Name | Description |
---|---|---|
GameObject | prefab | The prefab for this custom item. |
bool | fixReference | If true references for Mock<T> objects get resolved at runtime by Jötunn. |
CustomPrefab(AssetBundle, string, bool)
Custom prefab loaded from an AssetBundle.
Can fix references for Mock<T>s.
Can fix references for Mock<T>s.
Declaration
public CustomPrefab(AssetBundle assetBundle, string assetName, bool fixReference)
Parameters
Type | Name | Description |
---|---|---|
AssetBundle | assetBundle | A preloaded AssetBundle |
string | assetName | Name of the prefab in the bundle. |
bool | fixReference | If true references for Mock<T> objects get resolved at runtime by Jötunn. |