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
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
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
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
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.