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
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
Classes
SelectionSystem
chevron_left
Classes
class
SelectionSystem
Constructors
functions
SelectionSystem
Properties
data_object
Count
data_object
OnItemAdded
data_object
OnItemRemoved
Methods
functions
Add
functions
Any
functions
Clear
functions
Contains
functions
GetEnumerator
functions
Remove
functions
Set
Static Methods
functions
ConstructTitle
SelectionSystem
An ordered collection of unique objects with add/remove callbacks. Maintains insertion order and provides change notifications.
class
Sandbox
.
Sandbox.System
build
Constructors
1
SelectionSystem
(
)
data_object
Properties
3
Count
int
Gets the number of selected objects.
OnItemAdded
Action`1
Invoked when an item is added to the selection.
OnItemRemoved
Action`1
Invoked when an item is removed from the selection.
functions
Methods
7
Add
(
obj
)
bool
Adds an object to the selection.
Any
(
)
bool
Checks if the selection contains any objects.
Clear
(
)
Removes all objects from the selection, invoking OnItemRemoved for each.
Contains
(
obj
)
bool
Checks if an object is in the selection.
GetEnumerator
(
)
IEnumerator`1
Returns an enumerator that iterates through the selected objects in order.
Remove
(
obj
)
bool
Removes an object from the selection.
Set
(
obj
)
bool
Clears the selection and sets it to a single object.
functions
Static Methods
1
ConstructTitle
(
sys
)
string
Create a feasible title from the current selection
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.