Prefab Class
Namespace: Stride.EngineAssembly: Stride.Engine.dll
A prefab that contains entities.
System.Object →
Prefab
Derived from Prefab:
[DataContract("Prefab")]
[ContentSerializer(typeof(DataContentSerializerWithReuse<Prefab>))]
[DataSerializerGlobal(typeof(ReferenceSerializer<Prefab>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
public sealed class Prefab
Name | Description | |
---|---|---|
Properties | ||
Entities | The entities. |
|
Methods | ||
Instantiate() | Instantiates entities from a prefab that can be later added to a Scene. |
Properties
Entities
The entities.
public List<Entity> Entities { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Entity> |
Methods
Instantiate()
Instantiates entities from a prefab that can be later added to a Scene.
public List<Entity> Instantiate()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Entity> | A collection of entities extracted from the prefab |