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
SceneModel
GetAttachment
chevron_left Classes
class
SceneModel

Constructors

functionsSceneModel

Properties

data_objectAnimationGraphdata_objectCurrentSequencedata_objectDirectPlaybackdata_objectMorphsdata_objectOnAnimTagEventdata_objectOnFootstepEventdata_objectOnGenericEventdata_objectOnSoundEventdata_objectPlaybackRatedata_objectRootMotiondata_objectUseAnimGraph

Methods

functionsClearBoneOverridesfunctionsDispatchTagEventsfunctionsGetAttachmentfunctionsGetBoneLocalTransformfunctionsGetBoneVelocityfunctionsGetBoneWorldTransformfunctionsGetBoolfunctionsGetFloatfunctionsGetIntfunctionsGetParentSpaceBonefunctionsGetRotationfunctionsGetVector3functionsHasBoneOverridesfunctionsMergeBonesfunctionsResetAnimParametersfunctionsRunPendingEventsremove_circleSetAnimGraphfunctionsSetAnimParameterfunctionsSetBodyGroupfunctionsSetBoneOverridefunctionsSetBoneWorldTransformfunctionsSetMaterialGroupfunctionsUpdatefunctionsUpdateToBindPose
GetAttachment
Get attachment transform by name.
method
System.Nullable<Transform> GetAttachment (string name, bool worldspace)

Parameters

NameTypeDescription
name string Name of the attachment to calculate transform of.
worldspace = True bool Whether the transform should be in world space (relative to the scene world), or local space (relative to the scene object)

Returns

TypeDescription
System.Nullable<Transform>
Declared in Sandbox.SceneModel ยท Assembly Sandbox.Engine
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