Hammer New Objects Toolbar: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{LanguageBar}}
[[Category:Hammer Toolbars]]
[[Category:Hammer Toolbars]]
The '''New Objects Toolbar''' controls multiple facets of creation within Hammer. Entities, [[prefab]]s, brushes – the creation of all of these can be controlled from here. The options available in the '''New Objects toolbar''' reflect the category of object you are creating or editing – primitives, entities, or prefabs.
The '''New Objects''' toolbar controls multiple facets of object creation within Hammer. [[entity|Entities]], [[prefab]]s, [[brush]]es – the creation of all of these can be controlled from here. The options available in the New Objects Toolbar reflect the category of object you are creating or editing – [[#Primitives Mode|primitives]], [[#Entities Mode|entities]], or [[#Prefabs Mode|prefabs]].
=General=
 
==toWorld <Ctrl+Shift+W>==
==toWorld <Ctrl+Shift+W>==


Line 9: Line 10:


This function binds selected objects to create a solid entity. You need to switch to the [[Hammer Selection Tool|Selection Tool]] to use this button. See [[Hammer Tools Menu#Tie to Entity <Ctrl.2BT>|Tie To Entity in the Tools Menu]] for further details.
This function binds selected objects to create a solid entity. You need to switch to the [[Hammer Selection Tool|Selection Tool]] to use this button. See [[Hammer Tools Menu#Tie to Entity <Ctrl.2BT>|Tie To Entity in the Tools Menu]] for further details.
==Categories==
 
===Block Tool===
== Categories ==
The &ldquo;Primitives&rdquo; category is available; it contains seven basic solid shapes:
The contents of the '''Categories''' drop-down list changes the mode of the '''New Objects''' toolbar, depending on if the '''Block Tool''' or the '''Entities Tool''' is currently selected. These modes are listed below.
#[[Hammer Arch Tool|arch]]
 
== Primitives Mode ==
[[File:hammer_newobjectstoolbar.png|frame|caption|right|Primitives mode.]]
When the [[Hammer Block Tool|Block Tool]] is selected, the '''Primitives''' category is available; it contains seven basic solid shapes in the '''Objects''' list:
#[[Hammer Arch Properties|arch]]
#block
#block
#cylinder
#cylinder
Line 20: Line 25:
#wedge
#wedge


If any [[Prefab]] libraries have been defined, then the library names will also be listed here.
=== Faces ===
===Entity Tool===
No categories other than '''Entities''' are available.
==Object==


This list contains all objects that belong to the chosen category. For the ''Entities'' category, the list contains all entity classes available. For the ''Primitives'' category, the list contains the seven types of primitives. For a ''Prefabs'' category, the list contains all objects in the selected prefab library.
This text box becomes enabled if the '''Block Tool''' is active, and either ''cylinder'' or ''spike'' is the current object type. The value (which can be changed by either the keyboard or the adjacent buttons) represents the number of side faces the cylinder/spike will be created with.


==Create Prefab <Ctrl+R>==
{{note|The '''Create Prefab''' button is non-functional in this mode.}}{{clr}}


This will let you turn a selected object into a prefab object, which will be easily reusable.
== Entities Mode ==
[[File:hammer_newentity.png|frame|caption|right|Entities mode.]]
When the '''Entity Tool''' is selected, the '''Entities''' category is available; it contains a list of point [[entities]] that can be placed. The [[Hammer Entity Tool|Entity Tool]] is used to place point entities.


=Primitives Mode=
{{note|The '''Create Prefab''' button is non-functional in this mode.}}{{clr}}


When you have the [[Hammer Block Tool|Block Tool]] selected and the '''Categories''' field set to '''Primitives''', the following options are available:
== Prefabs Mode ==
[[File:hammer_newprefab.png|frame|caption|right|Prefabs mode.]]
When either the '''Entity Tool''' or the '''Block Tool''' is selected the prefab library names will be listed here.


[[Image:hammer_newobjectstoolbar.png]]
{{note|At least one [[Prefab]] library must be created for these options to be available.}}


==Faces==
=== Insert Original Prefab ===
Inserts the selected prefab into the center of the active 2D view. You can also use the Block Tool to insert a prefab and scale it simultaneously.


This text box becomes enabled if the Block Tool is active, and either cylinder or spike is the current solid type. The value (which can be changed by either the keyboard or the adjacent buttons) represents the number of side faces the cylinder/spike will be created with.
=== Create Prefab <Ctrl+R> ===
 
This will let you turn a selected object into a prefab object, which will be easily reusable.
=Entities Mode=
 
When you have the Entity Tool selected, the '''Categories''' field is automatically set to <i>Entities</i>, and the following options are available:
 
[[image:hammer_newentity.jpg]]
 
=Prefabs Mode=


When you have the Selection Tool or Block Tool selected and the '''Categories''' field set to one of the prefab libraries, the following options are available:
* See [[Prefab]] for information on creating and placing Prefab objects.{{clr}}


[[Image:hamemr_newprefabobject.jpg]]
== Objects ==


==Insert Original Prefab==
This list contains all objects that belong to the chosen category. For the ''Primitives'' category, the list contains the  primitives types. For the ''Entities'' category, the list contains all entity classes available. For the ''Prefabs'' category, the list contains all objects in the selected prefab library.


Inserts the selected prefab into the center of the active 2D view. You can also use the Block Tool to insert a prefab and scale it simultaneously. See Inserting Prefabs for more information on inserting a Prefab object into your map.
== See also ==
* [[Entity]]
* [[Prefab]]

Latest revision as of 05:36, 27 June 2025

English (en)中文 (zh)Translate (Translate)

The New Objects toolbar controls multiple facets of object creation within Hammer. Entities, prefabs, brushes – the creation of all of these can be controlled from here. The options available in the New Objects Toolbar reflect the category of object you are creating or editing – primitives, entities, or prefabs.

toWorld <Ctrl+Shift+W>

This function will remove any entity settings of the selected solid or group of solids. See Move to World in the Tools Menu for further details.

toEntity <Ctrl+T>

This function binds selected objects to create a solid entity. You need to switch to the Selection Tool to use this button. See Tie To Entity in the Tools Menu for further details.

Categories

The contents of the Categories drop-down list changes the mode of the New Objects toolbar, depending on if the Block Tool or the Entities Tool is currently selected. These modes are listed below.

Primitives Mode

Primitives mode.

When the Block Tool is selected, the Primitives category is available; it contains seven basic solid shapes in the Objects list:

  1. arch
  2. block
  3. cylinder
  4. sphere
  5. spike
  6. torus
  7. wedge

Faces

This text box becomes enabled if the Block Tool is active, and either cylinder or spike is the current object type. The value (which can be changed by either the keyboard or the adjacent buttons) represents the number of side faces the cylinder/spike will be created with.

Note.pngNote:The Create Prefab button is non-functional in this mode.

Entities Mode

Entities mode.

When the Entity Tool is selected, the Entities category is available; it contains a list of point entities that can be placed. The Entity Tool is used to place point entities.

Note.pngNote:The Create Prefab button is non-functional in this mode.

Prefabs Mode

Prefabs mode.

When either the Entity Tool or the Block Tool is selected the prefab library names will be listed here.

Note.pngNote:At least one Prefab library must be created for these options to be available.

Insert Original Prefab

Inserts the selected prefab into the center of the active 2D view. You can also use the Block Tool to insert a prefab and scale it simultaneously.

Create Prefab <Ctrl+R>

This will let you turn a selected object into a prefab object, which will be easily reusable.

  • See Prefab for information on creating and placing Prefab objects.

Objects

This list contains all objects that belong to the chosen category. For the Primitives category, the list contains the primitives types. For the Entities category, the list contains all entity classes available. For the Prefabs category, the list contains all objects in the selected prefab library.

See also