Table of Contents

Class Prefab

Namespace
Stride.Engine
Assembly
Stride.Engine.dll

A prefab that contains entities.

[DataContract("Prefab")]
[ContentSerializer(typeof(DataContentSerializerWithReuse<Prefab>))]
[DataSerializerGlobal(typeof(ReferenceSerializer<Prefab>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
public sealed class Prefab
Inheritance
Prefab

Properties

Entities

The entities.

public List<Entity> Entities { get; }

Property Value

List<Entity>

Methods

Instantiate()

Instantiates entities from a prefab that can be later added to a Scene.

public List<Entity> Instantiate()

Returns

List<Entity>

A collection of entities extracted from the prefab