How can I create constraints for designer around a prefab structure?
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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