Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hammer] Ability to create Prefabs directly from a Tool #7088

Open
Tweety-lab opened this issue Nov 30, 2024 · 0 comments
Open

[Hammer] Ability to create Prefabs directly from a Tool #7088

Tweety-lab opened this issue Nov 30, 2024 · 0 comments

Comments

@Tweety-lab
Copy link

Tweety-lab commented Nov 30, 2024

What can't you do?

Currently, in Hammer, using prefabs requires dragging them from the Asset Browser, which can be inconvenient compared to the entity system, where you simply spawned an Entity with the Entity Tool and typed the name of the entity you wanted.

How would you like it to work?

Using either the Entity tool or a dedicated Prefab-specific tool that functions similarly, you could type the Prefab's name into the Class: input to spawn it at the desired location. Afterwards, the GameObject's properties could be edited just like an entity's, either by double-clicking the Prefab in the viewport, using the Object Properties tab, or double-clicking it in the Outliner.

Optionally, a Prefab property could allow you to assign a custom name for spawning via the tool, this would help maintain consistent naming conventions between Prefabs and Entities, especially since developers might not use snake_case for Prefab names. However, this could be slightly confusing.

What have you tried?

Dragging-and-Dropping Prefabs from the Asset Browser.

Additional context

If spawning Prefabs from the Entity tool causes issues due to conflicting names or just confusion between entities and Prefabs, Prefabs could be assigned a prefix, such as p_ to differentiate them, e.g.,p_my_awesome_prefab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant