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
gamejams
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
Get s&box
Sign in with Steam
Api
Classes
MeshComponent
chevron_left Classes
class
MeshComponent

Constructors

functionsMeshComponent

Properties

data_objectCollisiondata_objectColordata_objectDisabledInLowQualitydata_objectEditorRenderFlagsdata_objectHideInGamedata_objectIsConcavedata_objectMeshdata_objectModeldata_objectRenderOrderdata_objectRenderTypedata_objectSmoothingAngle

Methods

functionsGetMaterialfunctionsRebuildMeshfunctionsSetMaterial
MeshComponent
An editable polygon mesh with collision
class Sandbox .account_tree extends Collider
sealedSandbox.Engine

build Constructors 1

MeshComponent ()

data_object Properties 11

Collision
CollisionType
Color
Color
DisabledInLowQuality
bool
Hide this surface when rendering in low quality mode.
EditorRenderFlags
MeshRenderFlags
HideInGame
bool
IsConcave
bool
Mesh
PolygonMesh
Model
Model
RenderOrder
int
Draw order for overlapping overlay surfaces.
RenderType
ShadowRenderType
SmoothingAngle
float

functions Methods 3

GetMaterial (triangle)
Material
RebuildMesh ()
SetMaterial (material, triangle)

Inheritance

Component
Collider
MeshComponent
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