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
Vector2Int
SnapToGrid
chevron_left Classes
struct
Vector2Int

Constructors

functionsVector2Int

Fields

crop_dinxcrop_diny

Properties

data_objectDegreesdata_objectIsZeroLengthdata_objectItemdata_objectLengthdata_objectLengthSquareddata_objectNormaldata_objectPerpendicular

Methods

functionsAbsfunctionsComponentMaxfunctionsComponentMinfunctionsDistancefunctionsIsNearlyZerofunctionsReadfunctionsSnapToGridfunctionsWithXfunctionsWithYfunctionsWrite

Static Fields

crop_dinDowncrop_dinLeftcrop_dinOnecrop_dinRightcrop_dinUpcrop_dinZero

Static Methods

functionsMaxfunctionsMinfunctionsParsefunctionsTryParse
SnapToGrid
Snap to grid along any of the 2 axes.
method
Vector2Int SnapToGrid (int gridSize, bool sx, bool sy)

Parameters

NameTypeDescription
gridSize int
sx = True bool
sy = True bool

Returns

TypeDescription
Vector2Int
Declared in Vector2Int ยท Assembly Sandbox.System
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