s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter