Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    Model node links

    Beginner Artist

    Note

    In some versions of Stride, Model node links are called Bone links.

    The model node link component attaches an entity to a node of a skeleton on another entity.

    For example, imagine you have two models: a knight, and a sword. The character has a sword swinging animation. You can use a model link node to place the sword in the knight's hand and attach it to the correct node in the knight skeleton, so the sword swings with the knight animation.

    Set up a model node link component

    1. In the Scene Editor, select the entity you want to link to a node in another entity.

    2. In the Property Grid, click Add component and select Model node link.

      Add component

      Game Studio adds a model node link component to the entity.

      Model node link component

      The component only has two properties: Node name and Target.

    3. Next to Target, click Hand icon.

      The Select an entity window opens.

      Select an entity

    4. Select the model you want to link the entity to and click OK.

      Note

      The entity you link to must have a model with a skeleton, even if the model isn't visible at runtime.

      Tip

      If you don't specify a model, Stride links the entity to the model on the parent entity.

    5. In Node name, select the node in the model you want to attach this entity to.

      Select node

      After you link the node, the Entity Tree shows the link in blue next to the entity name.

      Model node link

    Offset

    To add an offset to the linked entity, use the entity's TransformComponent.

    Transform

    Note

    If you don't want to add an offset, make sure the values are all set to 0,0,0.

    See also

    • Import animations
    • Animation properties
    • Set up animations
    • Preview animations
    • Animation scripts
    • Additive animation
    • Procedural animation
    • Custom blend trees
    • custom attributes

    For examples of how model node links are used, see:

    • Particles — Create a trail
    • Cameras — Animate a camera with a model file
    • Improve this Doc
    In This Article

    Back to top

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