Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    Create a prefab

    Beginner Designer

    In the Asset View, click Add asset and select Prefabs > Prefab.

    Create a prefab from the Asset View

    Game Studio creates an empty prefab asset with the default name Prefab. Double-click the asset to open the Prefab Editor and add entities.

    Create a prefab from an entity

    You can also create a prefab from an existing entity or entities.

    1. In the Scene Editor, select the entity or entities you want to create a prefab from.

      Tip

      Hold Ctrl to select multiple items.

    2. Right-click the selection and select Create prefab from selection:

    Create a prefab from selection

    Game Studio creates a prefab asset from the entity or entities you selected. You can access the new prefab from the Asset View.

    Prefab in Asset View

    Note

    After you create a prefab from a selection, the original selection itself becomes a prefab.

    Create a prefab from an existing modified prefab

    You can create new prefabs from modified prefabs. For example, you can instantiate a prefab, override one of its properties, then use this modified prefab instance to create a new prefab.

    See also

    • Prefab index
    • Use prefabs
    • Edit prefabs
    • Nested prefabs
    • Override prefab properties
    • Prefab models
    • Improve this Doc
    In This Article

    Back to top

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