s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
SelectionSystem
chevron_left Classes
class
SelectionSystem

Constructors

functionsSelectionSystem

Properties

data_objectCountdata_objectOnItemAddeddata_objectOnItemRemoved

Methods

functionsAddfunctionsAnyfunctionsClearfunctionsContainsfunctionsGetEnumeratorfunctionsRemovefunctionsSet

Static Methods

functionsConstructTitle
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter