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

Game Jam III

Starts Fri 4 Sep
Theme

Theme revealed when the jam starts.

£50,000
prizepool
Read more
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
RangedFloat
chevron_left Classes
struct
RangedFloat

Constructors

functionsRangedFloat

Fields

remove_circlexremove_circley

Properties

data_objectFixedValuedata_objectMaxdata_objectMindata_objectRangedata_objectRangeValue

Methods

functionsDeconstructfunctionsGetValue

Static Methods

functionsParse
RangedFloat
A float between two values, which can be randomized or fixed.
struct
sealedSandbox.System

build Constructors 1

RangedFloat (fixedValue)
Initialize the float as a fixed value.

crop_din Fields 2

x
obsoletefloat
y
obsoletefloat

data_object Properties 5

FixedValue
float
The fixed value. Setting this will convert us to a fixed value
Max
float
The maximum value of the float range. For RangedFloat.RangeType.Fixed, this will be the same as RangedFloat.Min.
Min
float
The minimum value of the float range.
Range
RangeType
Range type of this float.
RangeValue
Vector2
The range value. Setting this will convert us to a range value

functions Methods 2

Deconstruct (min, max)
GetValue ()
float
Returns the final value of this ranged float, randomizing between min and max values.

functions Static Methods 1

Parse (str)
RangedFloat
Parse a ranged float from a string. Format is "min[ max]".
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