Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    Prefab Class

    Namespace: Stride.Engine
    Assembly: 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.

    | Improve this Doc View Source

    Properties


    Entities

    The entities.

    public List<Entity> Entities { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<Entity>
    | Improve this Doc View Source

    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


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation