stride3d / stride3d/stride

How can I create constraints for designer around a prefab structure?

Open
#1,054 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Asset question
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Hi! As architect I want to create strict prefab with other prefab with model and collllider. For example:

I have Unit Prefab. How can I say, that every concrete unit must have a prefab with model and collider? It is possible?

Sure I can add properties into a script, but I can't validate right designer work in design time.

Sorry for my bad english (

UPDATE:

I can show example by code

For example: I have a class Unit

public abstract class Unit
{
    public Model Model { get; set; }
    public Collider Collider { get; set; }

    public Unit(Model model, Collider collider)
    {
        Model = model;
        Collider = collider;
    }

    // Other props and behaviours
}

So, when I inherit my class Unit in class Marine, I should post into the base constructor Model and Collider instances.

I want to reproduce this behavior in the design flow.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. First clarify how prefab composition and design-time validation are handled in Stride, then identify the relevant editor and prefab systems and define the expected validation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.