s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
results
Game Jam III
Crowned
Sat 3 Oct
Winner
🏆 GAMMA ☢ TEAM
Theme
One More Round
This jam is over. The next one will show up here.
See the results
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Editor Classes
Selection
chevron_left
Editor Classes
class
Selection
Static Properties
data_object
All
data_object
PivotPosition
data_object
SelectMode
Static Methods
functions
Add
functions
Clear
functions
InvertSelection
functions
Remove
functions
SelectAll
functions
Set
Selection
Current selection set for the active map
class
Editor.MapEditor
.
static
sealed
abstract
Sandbox.Tools
Remarks
Currently this only supports
Editor.MapDoc.MapNode
selections. There are selections of vertices, edges, faces too that would likely change this API
data_object
Static Properties
3
All
IEnumerable`1
All the map nodes in the current selection set
PivotPosition
Vector3
The position of the selection's pivot
SelectMode
SelectMode
The current selection mode e.g Meshes or Objects
functions
Static Methods
6
Add
(
node
)
Add the map node to the current set
Clear
(
)
Clear everything from the current selection set
InvertSelection
(
)
Invert the current selection
Remove
(
node
)
Remove this map node from the current set if it exists
SelectAll
(
)
Add all to the current selection
Set
(
node
)
Clear the current set, making the map node the only selected node
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.