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
TargetComponent
chevron_left Classes
class
TargetComponent

Constructors

functionsTargetComponent

Properties

data_objectComponentTypedata_objectComponentValuedata_objectFindModedata_objectGameObjectValuedata_objectTypedata_objectVariableName

Methods

functionsCollectArgumentsfunctionsGetComponentType

Static Methods

functionsJsonReadfunctionsJsonWrite
TargetComponent
Abstracts a link to a component - which can be * An actual component * A GameObject and a component type * A Variable (GameObject or Component) and a component type
class Sandbox.Doo .
Sandbox.Engine

build Constructors 1

TargetComponent ()

data_object Properties 6

ComponentType
string
The type of Component we want to access. This allows us to select members that exist on this type.
ComponentValue
Component
The Component we want to target directly.
FindMode
FindMode
GameObjectValue
GameObject
The GameObject that contains the target component.
Type
TargetType
VariableName
string
The name of the variable we're going to use. This can be a GameObject or a Component.

functions Methods 2

CollectArguments (arguments)
GetComponentType ()
Type

functions Static Methods 2

JsonRead (reader, typeToConvert)
object
JsonWrite (value, writer)
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