You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
.The text was updated successfully, but these errors were encountered: