[email protected] 317 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/@GlobalScope.xml.
  6. .. _class_@GlobalScope:
  7. @GlobalScope
  8. ============
  9. Global scope constants and functions.
  10. .. rst-class:: classref-introduction-group
  11. Description
  12. -----------
  13. A list of global scope enumerated constants and built-in functions. This is all that resides in the globals, constants regarding error codes, keycodes, property hints, etc.
  14. Singletons are also documented here, since they can be accessed from anywhere.
  15. For the entries related to GDScript which can be accessed in any script see :ref:`@GDScript<class_@GDScript>`.
  16. .. note::
  17. There are notable differences when using this API with C#. See :ref:`doc_c_sharp_differences` for more information.
  18. .. rst-class:: classref-introduction-group
  19. Tutorials
  20. ---------
  21. - :doc:`Random number generation <../tutorials/math/random_number_generation>`
  22. .. rst-class:: classref-reftable-group
  23. Properties
  24. ----------
  25. .. table::
  26. :widths: auto
  27. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  28. | :ref:`AudioServer<class_AudioServer>` | :ref:`AudioServer<class_@GlobalScope_property_AudioServer>` |
  29. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  30. | :ref:`CameraServer<class_CameraServer>` | :ref:`CameraServer<class_@GlobalScope_property_CameraServer>` |
  31. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  32. | :ref:`ClassDB<class_ClassDB>` | :ref:`ClassDB<class_@GlobalScope_property_ClassDB>` |
  33. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  34. | :ref:`DisplayServer<class_DisplayServer>` | :ref:`DisplayServer<class_@GlobalScope_property_DisplayServer>` |
  35. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  36. | :ref:`EditorInterface<class_EditorInterface>` | :ref:`EditorInterface<class_@GlobalScope_property_EditorInterface>` |
  37. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  38. | :ref:`Engine<class_Engine>` | :ref:`Engine<class_@GlobalScope_property_Engine>` |
  39. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  40. | :ref:`EngineDebugger<class_EngineDebugger>` | :ref:`EngineDebugger<class_@GlobalScope_property_EngineDebugger>` |
  41. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  42. | :ref:`GDExtensionManager<class_GDExtensionManager>` | :ref:`GDExtensionManager<class_@GlobalScope_property_GDExtensionManager>` |
  43. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  44. | :ref:`Geometry2D<class_Geometry2D>` | :ref:`Geometry2D<class_@GlobalScope_property_Geometry2D>` |
  45. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  46. | :ref:`Geometry3D<class_Geometry3D>` | :ref:`Geometry3D<class_@GlobalScope_property_Geometry3D>` |
  47. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  48. | :ref:`GodotSharp<class_GodotSharp>` | :ref:`GodotSharp<class_@GlobalScope_property_GodotSharp>` |
  49. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  50. | :ref:`IP<class_IP>` | :ref:`IP<class_@GlobalScope_property_IP>` |
  51. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  52. | :ref:`Input<class_Input>` | :ref:`Input<class_@GlobalScope_property_Input>` |
  53. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  54. | :ref:`InputMap<class_InputMap>` | :ref:`InputMap<class_@GlobalScope_property_InputMap>` |
  55. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  56. | :ref:`JavaClassWrapper<class_JavaClassWrapper>` | :ref:`JavaClassWrapper<class_@GlobalScope_property_JavaClassWrapper>` |
  57. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  58. | :ref:`JavaScriptBridge<class_JavaScriptBridge>` | :ref:`JavaScriptBridge<class_@GlobalScope_property_JavaScriptBridge>` |
  59. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  60. | :ref:`Marshalls<class_Marshalls>` | :ref:`Marshalls<class_@GlobalScope_property_Marshalls>` |
  61. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  62. | :ref:`NativeMenu<class_NativeMenu>` | :ref:`NativeMenu<class_@GlobalScope_property_NativeMenu>` |
  63. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  64. | :ref:`NavigationMeshGenerator<class_NavigationMeshGenerator>` | :ref:`NavigationMeshGenerator<class_@GlobalScope_property_NavigationMeshGenerator>` |
  65. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  66. | :ref:`NavigationServer2D<class_NavigationServer2D>` | :ref:`NavigationServer2D<class_@GlobalScope_property_NavigationServer2D>` |
  67. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  68. | :ref:`NavigationServer3D<class_NavigationServer3D>` | :ref:`NavigationServer3D<class_@GlobalScope_property_NavigationServer3D>` |
  69. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  70. | :ref:`OS<class_OS>` | :ref:`OS<class_@GlobalScope_property_OS>` |
  71. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  72. | :ref:`Performance<class_Performance>` | :ref:`Performance<class_@GlobalScope_property_Performance>` |
  73. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  74. | :ref:`PhysicsServer2D<class_PhysicsServer2D>` | :ref:`PhysicsServer2D<class_@GlobalScope_property_PhysicsServer2D>` |
  75. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  76. | :ref:`PhysicsServer2DManager<class_PhysicsServer2DManager>` | :ref:`PhysicsServer2DManager<class_@GlobalScope_property_PhysicsServer2DManager>` |
  77. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  78. | :ref:`PhysicsServer3D<class_PhysicsServer3D>` | :ref:`PhysicsServer3D<class_@GlobalScope_property_PhysicsServer3D>` |
  79. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  80. | :ref:`PhysicsServer3DManager<class_PhysicsServer3DManager>` | :ref:`PhysicsServer3DManager<class_@GlobalScope_property_PhysicsServer3DManager>` |
  81. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  82. | :ref:`ProjectSettings<class_ProjectSettings>` | :ref:`ProjectSettings<class_@GlobalScope_property_ProjectSettings>` |
  83. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  84. | :ref:`RenderingServer<class_RenderingServer>` | :ref:`RenderingServer<class_@GlobalScope_property_RenderingServer>` |
  85. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  86. | :ref:`ResourceLoader<class_ResourceLoader>` | :ref:`ResourceLoader<class_@GlobalScope_property_ResourceLoader>` |
  87. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  88. | :ref:`ResourceSaver<class_ResourceSaver>` | :ref:`ResourceSaver<class_@GlobalScope_property_ResourceSaver>` |
  89. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  90. | :ref:`ResourceUID<class_ResourceUID>` | :ref:`ResourceUID<class_@GlobalScope_property_ResourceUID>` |
  91. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  92. | :ref:`TextServerManager<class_TextServerManager>` | :ref:`TextServerManager<class_@GlobalScope_property_TextServerManager>` |
  93. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  94. | :ref:`ThemeDB<class_ThemeDB>` | :ref:`ThemeDB<class_@GlobalScope_property_ThemeDB>` |
  95. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  96. | :ref:`Time<class_Time>` | :ref:`Time<class_@GlobalScope_property_Time>` |
  97. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  98. | :ref:`TranslationServer<class_TranslationServer>` | :ref:`TranslationServer<class_@GlobalScope_property_TranslationServer>` |
  99. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  100. | :ref:`WorkerThreadPool<class_WorkerThreadPool>` | :ref:`WorkerThreadPool<class_@GlobalScope_property_WorkerThreadPool>` |
  101. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  102. | :ref:`XRServer<class_XRServer>` | :ref:`XRServer<class_@GlobalScope_property_XRServer>` |
  103. +---------------------------------------------------------------+-------------------------------------------------------------------------------------+
  104. .. rst-class:: classref-reftable-group
  105. Methods
  106. -------
  107. .. table::
  108. :widths: auto
  109. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  110. | :ref:`Variant<class_Variant>` | :ref:`abs<class_@GlobalScope_method_abs>`\ (\ x\: :ref:`Variant<class_Variant>`\ ) |
  111. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  112. | :ref:`float<class_float>` | :ref:`absf<class_@GlobalScope_method_absf>`\ (\ x\: :ref:`float<class_float>`\ ) |
  113. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  114. | :ref:`int<class_int>` | :ref:`absi<class_@GlobalScope_method_absi>`\ (\ x\: :ref:`int<class_int>`\ ) |
  115. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  116. | :ref:`float<class_float>` | :ref:`acos<class_@GlobalScope_method_acos>`\ (\ x\: :ref:`float<class_float>`\ ) |
  117. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  118. | :ref:`float<class_float>` | :ref:`acosh<class_@GlobalScope_method_acosh>`\ (\ x\: :ref:`float<class_float>`\ ) |
  119. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  120. | :ref:`float<class_float>` | :ref:`angle_difference<class_@GlobalScope_method_angle_difference>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`\ ) |
  121. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  122. | :ref:`float<class_float>` | :ref:`asin<class_@GlobalScope_method_asin>`\ (\ x\: :ref:`float<class_float>`\ ) |
  123. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  124. | :ref:`float<class_float>` | :ref:`asinh<class_@GlobalScope_method_asinh>`\ (\ x\: :ref:`float<class_float>`\ ) |
  125. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  126. | :ref:`float<class_float>` | :ref:`atan<class_@GlobalScope_method_atan>`\ (\ x\: :ref:`float<class_float>`\ ) |
  127. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  128. | :ref:`float<class_float>` | :ref:`atan2<class_@GlobalScope_method_atan2>`\ (\ y\: :ref:`float<class_float>`, x\: :ref:`float<class_float>`\ ) |
  129. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  130. | :ref:`float<class_float>` | :ref:`atanh<class_@GlobalScope_method_atanh>`\ (\ x\: :ref:`float<class_float>`\ ) |
  131. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  132. | :ref:`float<class_float>` | :ref:`bezier_derivative<class_@GlobalScope_method_bezier_derivative>`\ (\ start\: :ref:`float<class_float>`, control_1\: :ref:`float<class_float>`, control_2\: :ref:`float<class_float>`, end\: :ref:`float<class_float>`, t\: :ref:`float<class_float>`\ ) |
  133. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  134. | :ref:`float<class_float>` | :ref:`bezier_interpolate<class_@GlobalScope_method_bezier_interpolate>`\ (\ start\: :ref:`float<class_float>`, control_1\: :ref:`float<class_float>`, control_2\: :ref:`float<class_float>`, end\: :ref:`float<class_float>`, t\: :ref:`float<class_float>`\ ) |
  135. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  136. | :ref:`Variant<class_Variant>` | :ref:`bytes_to_var<class_@GlobalScope_method_bytes_to_var>`\ (\ bytes\: :ref:`PackedByteArray<class_PackedByteArray>`\ ) |
  137. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  138. | :ref:`Variant<class_Variant>` | :ref:`bytes_to_var_with_objects<class_@GlobalScope_method_bytes_to_var_with_objects>`\ (\ bytes\: :ref:`PackedByteArray<class_PackedByteArray>`\ ) |
  139. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  140. | :ref:`Variant<class_Variant>` | :ref:`ceil<class_@GlobalScope_method_ceil>`\ (\ x\: :ref:`Variant<class_Variant>`\ ) |
  141. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  142. | :ref:`float<class_float>` | :ref:`ceilf<class_@GlobalScope_method_ceilf>`\ (\ x\: :ref:`float<class_float>`\ ) |
  143. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  144. | :ref:`int<class_int>` | :ref:`ceili<class_@GlobalScope_method_ceili>`\ (\ x\: :ref:`float<class_float>`\ ) |
  145. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  146. | :ref:`Variant<class_Variant>` | :ref:`clamp<class_@GlobalScope_method_clamp>`\ (\ value\: :ref:`Variant<class_Variant>`, min\: :ref:`Variant<class_Variant>`, max\: :ref:`Variant<class_Variant>`\ ) |
  147. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  148. | :ref:`float<class_float>` | :ref:`clampf<class_@GlobalScope_method_clampf>`\ (\ value\: :ref:`float<class_float>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ ) |
  149. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  150. | :ref:`int<class_int>` | :ref:`clampi<class_@GlobalScope_method_clampi>`\ (\ value\: :ref:`int<class_int>`, min\: :ref:`int<class_int>`, max\: :ref:`int<class_int>`\ ) |
  151. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  152. | :ref:`float<class_float>` | :ref:`cos<class_@GlobalScope_method_cos>`\ (\ angle_rad\: :ref:`float<class_float>`\ ) |
  153. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  154. | :ref:`float<class_float>` | :ref:`cosh<class_@GlobalScope_method_cosh>`\ (\ x\: :ref:`float<class_float>`\ ) |
  155. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  156. | :ref:`float<class_float>` | :ref:`cubic_interpolate<class_@GlobalScope_method_cubic_interpolate>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, pre\: :ref:`float<class_float>`, post\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ ) |
  157. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  158. | :ref:`float<class_float>` | :ref:`cubic_interpolate_angle<class_@GlobalScope_method_cubic_interpolate_angle>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, pre\: :ref:`float<class_float>`, post\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ ) |
  159. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  160. | :ref:`float<class_float>` | :ref:`cubic_interpolate_angle_in_time<class_@GlobalScope_method_cubic_interpolate_angle_in_time>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, pre\: :ref:`float<class_float>`, post\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`, to_t\: :ref:`float<class_float>`, pre_t\: :ref:`float<class_float>`, post_t\: :ref:`float<class_float>`\ ) |
  161. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  162. | :ref:`float<class_float>` | :ref:`cubic_interpolate_in_time<class_@GlobalScope_method_cubic_interpolate_in_time>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, pre\: :ref:`float<class_float>`, post\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`, to_t\: :ref:`float<class_float>`, pre_t\: :ref:`float<class_float>`, post_t\: :ref:`float<class_float>`\ ) |
  163. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  164. | :ref:`float<class_float>` | :ref:`db_to_linear<class_@GlobalScope_method_db_to_linear>`\ (\ db\: :ref:`float<class_float>`\ ) |
  165. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  166. | :ref:`float<class_float>` | :ref:`deg_to_rad<class_@GlobalScope_method_deg_to_rad>`\ (\ deg\: :ref:`float<class_float>`\ ) |
  167. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  168. | :ref:`float<class_float>` | :ref:`ease<class_@GlobalScope_method_ease>`\ (\ x\: :ref:`float<class_float>`, curve\: :ref:`float<class_float>`\ ) |
  169. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  170. | :ref:`String<class_String>` | :ref:`error_string<class_@GlobalScope_method_error_string>`\ (\ error\: :ref:`int<class_int>`\ ) |
  171. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  172. | :ref:`float<class_float>` | :ref:`exp<class_@GlobalScope_method_exp>`\ (\ x\: :ref:`float<class_float>`\ ) |
  173. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  174. | :ref:`Variant<class_Variant>` | :ref:`floor<class_@GlobalScope_method_floor>`\ (\ x\: :ref:`Variant<class_Variant>`\ ) |
  175. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  176. | :ref:`float<class_float>` | :ref:`floorf<class_@GlobalScope_method_floorf>`\ (\ x\: :ref:`float<class_float>`\ ) |
  177. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  178. | :ref:`int<class_int>` | :ref:`floori<class_@GlobalScope_method_floori>`\ (\ x\: :ref:`float<class_float>`\ ) |
  179. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  180. | :ref:`float<class_float>` | :ref:`fmod<class_@GlobalScope_method_fmod>`\ (\ x\: :ref:`float<class_float>`, y\: :ref:`float<class_float>`\ ) |
  181. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  182. | :ref:`float<class_float>` | :ref:`fposmod<class_@GlobalScope_method_fposmod>`\ (\ x\: :ref:`float<class_float>`, y\: :ref:`float<class_float>`\ ) |
  183. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  184. | :ref:`int<class_int>` | :ref:`hash<class_@GlobalScope_method_hash>`\ (\ variable\: :ref:`Variant<class_Variant>`\ ) |
  185. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  186. | :ref:`Object<class_Object>` | :ref:`instance_from_id<class_@GlobalScope_method_instance_from_id>`\ (\ instance_id\: :ref:`int<class_int>`\ ) |
  187. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  188. | :ref:`float<class_float>` | :ref:`inverse_lerp<class_@GlobalScope_method_inverse_lerp>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ ) |
  189. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  190. | :ref:`bool<class_bool>` | :ref:`is_equal_approx<class_@GlobalScope_method_is_equal_approx>`\ (\ a\: :ref:`float<class_float>`, b\: :ref:`float<class_float>`\ ) |
  191. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  192. | :ref:`bool<class_bool>` | :ref:`is_finite<class_@GlobalScope_method_is_finite>`\ (\ x\: :ref:`float<class_float>`\ ) |
  193. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  194. | :ref:`bool<class_bool>` | :ref:`is_inf<class_@GlobalScope_method_is_inf>`\ (\ x\: :ref:`float<class_float>`\ ) |
  195. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  196. | :ref:`bool<class_bool>` | :ref:`is_instance_id_valid<class_@GlobalScope_method_is_instance_id_valid>`\ (\ id\: :ref:`int<class_int>`\ ) |
  197. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  198. | :ref:`bool<class_bool>` | :ref:`is_instance_valid<class_@GlobalScope_method_is_instance_valid>`\ (\ instance\: :ref:`Variant<class_Variant>`\ ) |
  199. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  200. | :ref:`bool<class_bool>` | :ref:`is_nan<class_@GlobalScope_method_is_nan>`\ (\ x\: :ref:`float<class_float>`\ ) |
  201. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  202. | :ref:`bool<class_bool>` | :ref:`is_same<class_@GlobalScope_method_is_same>`\ (\ a\: :ref:`Variant<class_Variant>`, b\: :ref:`Variant<class_Variant>`\ ) |
  203. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  204. | :ref:`bool<class_bool>` | :ref:`is_zero_approx<class_@GlobalScope_method_is_zero_approx>`\ (\ x\: :ref:`float<class_float>`\ ) |
  205. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  206. | :ref:`Variant<class_Variant>` | :ref:`lerp<class_@GlobalScope_method_lerp>`\ (\ from\: :ref:`Variant<class_Variant>`, to\: :ref:`Variant<class_Variant>`, weight\: :ref:`Variant<class_Variant>`\ ) |
  207. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  208. | :ref:`float<class_float>` | :ref:`lerp_angle<class_@GlobalScope_method_lerp_angle>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ ) |
  209. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  210. | :ref:`float<class_float>` | :ref:`lerpf<class_@GlobalScope_method_lerpf>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ ) |
  211. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  212. | :ref:`float<class_float>` | :ref:`linear_to_db<class_@GlobalScope_method_linear_to_db>`\ (\ lin\: :ref:`float<class_float>`\ ) |
  213. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  214. | :ref:`float<class_float>` | :ref:`log<class_@GlobalScope_method_log>`\ (\ x\: :ref:`float<class_float>`\ ) |
  215. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  216. | :ref:`Variant<class_Variant>` | :ref:`max<class_@GlobalScope_method_max>`\ (\ ...\ ) |vararg| |
  217. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  218. | :ref:`float<class_float>` | :ref:`maxf<class_@GlobalScope_method_maxf>`\ (\ a\: :ref:`float<class_float>`, b\: :ref:`float<class_float>`\ ) |
  219. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  220. | :ref:`int<class_int>` | :ref:`maxi<class_@GlobalScope_method_maxi>`\ (\ a\: :ref:`int<class_int>`, b\: :ref:`int<class_int>`\ ) |
  221. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  222. | :ref:`Variant<class_Variant>` | :ref:`min<class_@GlobalScope_method_min>`\ (\ ...\ ) |vararg| |
  223. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  224. | :ref:`float<class_float>` | :ref:`minf<class_@GlobalScope_method_minf>`\ (\ a\: :ref:`float<class_float>`, b\: :ref:`float<class_float>`\ ) |
  225. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  226. | :ref:`int<class_int>` | :ref:`mini<class_@GlobalScope_method_mini>`\ (\ a\: :ref:`int<class_int>`, b\: :ref:`int<class_int>`\ ) |
  227. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  228. | :ref:`float<class_float>` | :ref:`move_toward<class_@GlobalScope_method_move_toward>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, delta\: :ref:`float<class_float>`\ ) |
  229. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  230. | :ref:`int<class_int>` | :ref:`nearest_po2<class_@GlobalScope_method_nearest_po2>`\ (\ value\: :ref:`int<class_int>`\ ) |
  231. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  232. | :ref:`float<class_float>` | :ref:`pingpong<class_@GlobalScope_method_pingpong>`\ (\ value\: :ref:`float<class_float>`, length\: :ref:`float<class_float>`\ ) |
  233. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  234. | :ref:`int<class_int>` | :ref:`posmod<class_@GlobalScope_method_posmod>`\ (\ x\: :ref:`int<class_int>`, y\: :ref:`int<class_int>`\ ) |
  235. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  236. | :ref:`float<class_float>` | :ref:`pow<class_@GlobalScope_method_pow>`\ (\ base\: :ref:`float<class_float>`, exp\: :ref:`float<class_float>`\ ) |
  237. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  238. | |void| | :ref:`print<class_@GlobalScope_method_print>`\ (\ ...\ ) |vararg| |
  239. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  240. | |void| | :ref:`print_rich<class_@GlobalScope_method_print_rich>`\ (\ ...\ ) |vararg| |
  241. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  242. | |void| | :ref:`print_verbose<class_@GlobalScope_method_print_verbose>`\ (\ ...\ ) |vararg| |
  243. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  244. | |void| | :ref:`printerr<class_@GlobalScope_method_printerr>`\ (\ ...\ ) |vararg| |
  245. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  246. | |void| | :ref:`printraw<class_@GlobalScope_method_printraw>`\ (\ ...\ ) |vararg| |
  247. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  248. | |void| | :ref:`prints<class_@GlobalScope_method_prints>`\ (\ ...\ ) |vararg| |
  249. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  250. | |void| | :ref:`printt<class_@GlobalScope_method_printt>`\ (\ ...\ ) |vararg| |
  251. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  252. | |void| | :ref:`push_error<class_@GlobalScope_method_push_error>`\ (\ ...\ ) |vararg| |
  253. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  254. | |void| | :ref:`push_warning<class_@GlobalScope_method_push_warning>`\ (\ ...\ ) |vararg| |
  255. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  256. | :ref:`float<class_float>` | :ref:`rad_to_deg<class_@GlobalScope_method_rad_to_deg>`\ (\ rad\: :ref:`float<class_float>`\ ) |
  257. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  258. | :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`rand_from_seed<class_@GlobalScope_method_rand_from_seed>`\ (\ seed\: :ref:`int<class_int>`\ ) |
  259. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  260. | :ref:`float<class_float>` | :ref:`randf<class_@GlobalScope_method_randf>`\ (\ ) |
  261. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  262. | :ref:`float<class_float>` | :ref:`randf_range<class_@GlobalScope_method_randf_range>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`\ ) |
  263. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  264. | :ref:`float<class_float>` | :ref:`randfn<class_@GlobalScope_method_randfn>`\ (\ mean\: :ref:`float<class_float>`, deviation\: :ref:`float<class_float>`\ ) |
  265. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  266. | :ref:`int<class_int>` | :ref:`randi<class_@GlobalScope_method_randi>`\ (\ ) |
  267. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  268. | :ref:`int<class_int>` | :ref:`randi_range<class_@GlobalScope_method_randi_range>`\ (\ from\: :ref:`int<class_int>`, to\: :ref:`int<class_int>`\ ) |
  269. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  270. | |void| | :ref:`randomize<class_@GlobalScope_method_randomize>`\ (\ ) |
  271. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  272. | :ref:`float<class_float>` | :ref:`remap<class_@GlobalScope_method_remap>`\ (\ value\: :ref:`float<class_float>`, istart\: :ref:`float<class_float>`, istop\: :ref:`float<class_float>`, ostart\: :ref:`float<class_float>`, ostop\: :ref:`float<class_float>`\ ) |
  273. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  274. | :ref:`int<class_int>` | :ref:`rid_allocate_id<class_@GlobalScope_method_rid_allocate_id>`\ (\ ) |
  275. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  276. | :ref:`RID<class_RID>` | :ref:`rid_from_int64<class_@GlobalScope_method_rid_from_int64>`\ (\ base\: :ref:`int<class_int>`\ ) |
  277. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  278. | :ref:`float<class_float>` | :ref:`rotate_toward<class_@GlobalScope_method_rotate_toward>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, delta\: :ref:`float<class_float>`\ ) |
  279. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  280. | :ref:`Variant<class_Variant>` | :ref:`round<class_@GlobalScope_method_round>`\ (\ x\: :ref:`Variant<class_Variant>`\ ) |
  281. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  282. | :ref:`float<class_float>` | :ref:`roundf<class_@GlobalScope_method_roundf>`\ (\ x\: :ref:`float<class_float>`\ ) |
  283. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  284. | :ref:`int<class_int>` | :ref:`roundi<class_@GlobalScope_method_roundi>`\ (\ x\: :ref:`float<class_float>`\ ) |
  285. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  286. | |void| | :ref:`seed<class_@GlobalScope_method_seed>`\ (\ base\: :ref:`int<class_int>`\ ) |
  287. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  288. | :ref:`Variant<class_Variant>` | :ref:`sign<class_@GlobalScope_method_sign>`\ (\ x\: :ref:`Variant<class_Variant>`\ ) |
  289. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  290. | :ref:`float<class_float>` | :ref:`signf<class_@GlobalScope_method_signf>`\ (\ x\: :ref:`float<class_float>`\ ) |
  291. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  292. | :ref:`int<class_int>` | :ref:`signi<class_@GlobalScope_method_signi>`\ (\ x\: :ref:`int<class_int>`\ ) |
  293. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  294. | :ref:`float<class_float>` | :ref:`sin<class_@GlobalScope_method_sin>`\ (\ angle_rad\: :ref:`float<class_float>`\ ) |
  295. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  296. | :ref:`float<class_float>` | :ref:`sinh<class_@GlobalScope_method_sinh>`\ (\ x\: :ref:`float<class_float>`\ ) |
  297. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  298. | :ref:`float<class_float>` | :ref:`smoothstep<class_@GlobalScope_method_smoothstep>`\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, x\: :ref:`float<class_float>`\ ) |
  299. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  300. | :ref:`Variant<class_Variant>` | :ref:`snapped<class_@GlobalScope_method_snapped>`\ (\ x\: :ref:`Variant<class_Variant>`, step\: :ref:`Variant<class_Variant>`\ ) |
  301. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  302. | :ref:`float<class_float>` | :ref:`snappedf<class_@GlobalScope_method_snappedf>`\ (\ x\: :ref:`float<class_float>`, step\: :ref:`float<class_float>`\ ) |
  303. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  304. | :ref:`int<class_int>` | :ref:`snappedi<class_@GlobalScope_method_snappedi>`\ (\ x\: :ref:`float<class_float>`, step\: :ref:`int<class_int>`\ ) |
  305. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  306. | :ref:`float<class_float>` | :ref:`sqrt<class_@GlobalScope_method_sqrt>`\ (\ x\: :ref:`float<class_float>`\ ) |
  307. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  308. | :ref:`int<class_int>` | :ref:`step_decimals<class_@GlobalScope_method_step_decimals>`\ (\ x\: :ref:`float<class_float>`\ ) |
  309. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  310. | :ref:`String<class_String>` | :ref:`str<class_@GlobalScope_method_str>`\ (\ ...\ ) |vararg| |
  311. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  312. | :ref:`Variant<class_Variant>` | :ref:`str_to_var<class_@GlobalScope_method_str_to_var>`\ (\ string\: :ref:`String<class_String>`\ ) |
  313. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  314. | :ref:`float<class_float>` | :ref:`tan<class_@GlobalScope_method_tan>`\ (\ angle_rad\: :ref:`float<class_float>`\ ) |
  315. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  316. | :ref:`float<class_float>` | :ref:`tanh<class_@GlobalScope_method_tanh>`\ (\ x\: :ref:`float<class_float>`\ ) |
  317. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  318. | :ref:`Variant<class_Variant>` | :ref:`type_convert<class_@GlobalScope_method_type_convert>`\ (\ variant\: :ref:`Variant<class_Variant>`, type\: :ref:`int<class_int>`\ ) |
  319. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  320. | :ref:`String<class_String>` | :ref:`type_string<class_@GlobalScope_method_type_string>`\ (\ type\: :ref:`int<class_int>`\ ) |
  321. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  322. | :ref:`int<class_int>` | :ref:`typeof<class_@GlobalScope_method_typeof>`\ (\ variable\: :ref:`Variant<class_Variant>`\ ) |
  323. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  324. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`var_to_bytes<class_@GlobalScope_method_var_to_bytes>`\ (\ variable\: :ref:`Variant<class_Variant>`\ ) |
  325. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  326. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`var_to_bytes_with_objects<class_@GlobalScope_method_var_to_bytes_with_objects>`\ (\ variable\: :ref:`Variant<class_Variant>`\ ) |
  327. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  328. | :ref:`String<class_String>` | :ref:`var_to_str<class_@GlobalScope_method_var_to_str>`\ (\ variable\: :ref:`Variant<class_Variant>`\ ) |
  329. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  330. | :ref:`Variant<class_Variant>` | :ref:`weakref<class_@GlobalScope_method_weakref>`\ (\ obj\: :ref:`Variant<class_Variant>`\ ) |
  331. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  332. | :ref:`Variant<class_Variant>` | :ref:`wrap<class_@GlobalScope_method_wrap>`\ (\ value\: :ref:`Variant<class_Variant>`, min\: :ref:`Variant<class_Variant>`, max\: :ref:`Variant<class_Variant>`\ ) |
  333. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  334. | :ref:`float<class_float>` | :ref:`wrapf<class_@GlobalScope_method_wrapf>`\ (\ value\: :ref:`float<class_float>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ ) |
  335. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  336. | :ref:`int<class_int>` | :ref:`wrapi<class_@GlobalScope_method_wrapi>`\ (\ value\: :ref:`int<class_int>`, min\: :ref:`int<class_int>`, max\: :ref:`int<class_int>`\ ) |
  337. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  338. .. rst-class:: classref-section-separator
  339. ----
  340. .. rst-class:: classref-descriptions-group
  341. Enumerations
  342. ------------
  343. .. _enum_@GlobalScope_Side:
  344. .. rst-class:: classref-enumeration
  345. enum **Side**:
  346. .. _class_@GlobalScope_constant_SIDE_LEFT:
  347. .. rst-class:: classref-enumeration-constant
  348. :ref:`Side<enum_@GlobalScope_Side>` **SIDE_LEFT** = ``0``
  349. Left side, usually used for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>`-derived classes.
  350. .. _class_@GlobalScope_constant_SIDE_TOP:
  351. .. rst-class:: classref-enumeration-constant
  352. :ref:`Side<enum_@GlobalScope_Side>` **SIDE_TOP** = ``1``
  353. Top side, usually used for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>`-derived classes.
  354. .. _class_@GlobalScope_constant_SIDE_RIGHT:
  355. .. rst-class:: classref-enumeration-constant
  356. :ref:`Side<enum_@GlobalScope_Side>` **SIDE_RIGHT** = ``2``
  357. Right side, usually used for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>`-derived classes.
  358. .. _class_@GlobalScope_constant_SIDE_BOTTOM:
  359. .. rst-class:: classref-enumeration-constant
  360. :ref:`Side<enum_@GlobalScope_Side>` **SIDE_BOTTOM** = ``3``
  361. Bottom side, usually used for :ref:`Control<class_Control>` or :ref:`StyleBox<class_StyleBox>`-derived classes.
  362. .. rst-class:: classref-item-separator
  363. ----
  364. .. _enum_@GlobalScope_Corner:
  365. .. rst-class:: classref-enumeration
  366. enum **Corner**:
  367. .. _class_@GlobalScope_constant_CORNER_TOP_LEFT:
  368. .. rst-class:: classref-enumeration-constant
  369. :ref:`Corner<enum_@GlobalScope_Corner>` **CORNER_TOP_LEFT** = ``0``
  370. Top-left corner.
  371. .. _class_@GlobalScope_constant_CORNER_TOP_RIGHT:
  372. .. rst-class:: classref-enumeration-constant
  373. :ref:`Corner<enum_@GlobalScope_Corner>` **CORNER_TOP_RIGHT** = ``1``
  374. Top-right corner.
  375. .. _class_@GlobalScope_constant_CORNER_BOTTOM_RIGHT:
  376. .. rst-class:: classref-enumeration-constant
  377. :ref:`Corner<enum_@GlobalScope_Corner>` **CORNER_BOTTOM_RIGHT** = ``2``
  378. Bottom-right corner.
  379. .. _class_@GlobalScope_constant_CORNER_BOTTOM_LEFT:
  380. .. rst-class:: classref-enumeration-constant
  381. :ref:`Corner<enum_@GlobalScope_Corner>` **CORNER_BOTTOM_LEFT** = ``3``
  382. Bottom-left corner.
  383. .. rst-class:: classref-item-separator
  384. ----
  385. .. _enum_@GlobalScope_Orientation:
  386. .. rst-class:: classref-enumeration
  387. enum **Orientation**:
  388. .. _class_@GlobalScope_constant_VERTICAL:
  389. .. rst-class:: classref-enumeration-constant
  390. :ref:`Orientation<enum_@GlobalScope_Orientation>` **VERTICAL** = ``1``
  391. General vertical alignment, usually used for :ref:`Separator<class_Separator>`, :ref:`ScrollBar<class_ScrollBar>`, :ref:`Slider<class_Slider>`, etc.
  392. .. _class_@GlobalScope_constant_HORIZONTAL:
  393. .. rst-class:: classref-enumeration-constant
  394. :ref:`Orientation<enum_@GlobalScope_Orientation>` **HORIZONTAL** = ``0``
  395. General horizontal alignment, usually used for :ref:`Separator<class_Separator>`, :ref:`ScrollBar<class_ScrollBar>`, :ref:`Slider<class_Slider>`, etc.
  396. .. rst-class:: classref-item-separator
  397. ----
  398. .. _enum_@GlobalScope_ClockDirection:
  399. .. rst-class:: classref-enumeration
  400. enum **ClockDirection**:
  401. .. _class_@GlobalScope_constant_CLOCKWISE:
  402. .. rst-class:: classref-enumeration-constant
  403. :ref:`ClockDirection<enum_@GlobalScope_ClockDirection>` **CLOCKWISE** = ``0``
  404. Clockwise rotation. Used by some methods (e.g. :ref:`Image.rotate_90<class_Image_method_rotate_90>`).
  405. .. _class_@GlobalScope_constant_COUNTERCLOCKWISE:
  406. .. rst-class:: classref-enumeration-constant
  407. :ref:`ClockDirection<enum_@GlobalScope_ClockDirection>` **COUNTERCLOCKWISE** = ``1``
  408. Counter-clockwise rotation. Used by some methods (e.g. :ref:`Image.rotate_90<class_Image_method_rotate_90>`).
  409. .. rst-class:: classref-item-separator
  410. ----
  411. .. _enum_@GlobalScope_HorizontalAlignment:
  412. .. rst-class:: classref-enumeration
  413. enum **HorizontalAlignment**:
  414. .. _class_@GlobalScope_constant_HORIZONTAL_ALIGNMENT_LEFT:
  415. .. rst-class:: classref-enumeration-constant
  416. :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **HORIZONTAL_ALIGNMENT_LEFT** = ``0``
  417. Horizontal left alignment, usually for text-derived classes.
  418. .. _class_@GlobalScope_constant_HORIZONTAL_ALIGNMENT_CENTER:
  419. .. rst-class:: classref-enumeration-constant
  420. :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **HORIZONTAL_ALIGNMENT_CENTER** = ``1``
  421. Horizontal center alignment, usually for text-derived classes.
  422. .. _class_@GlobalScope_constant_HORIZONTAL_ALIGNMENT_RIGHT:
  423. .. rst-class:: classref-enumeration-constant
  424. :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **HORIZONTAL_ALIGNMENT_RIGHT** = ``2``
  425. Horizontal right alignment, usually for text-derived classes.
  426. .. _class_@GlobalScope_constant_HORIZONTAL_ALIGNMENT_FILL:
  427. .. rst-class:: classref-enumeration-constant
  428. :ref:`HorizontalAlignment<enum_@GlobalScope_HorizontalAlignment>` **HORIZONTAL_ALIGNMENT_FILL** = ``3``
  429. Expand row to fit width, usually for text-derived classes.
  430. .. rst-class:: classref-item-separator
  431. ----
  432. .. _enum_@GlobalScope_VerticalAlignment:
  433. .. rst-class:: classref-enumeration
  434. enum **VerticalAlignment**:
  435. .. _class_@GlobalScope_constant_VERTICAL_ALIGNMENT_TOP:
  436. .. rst-class:: classref-enumeration-constant
  437. :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` **VERTICAL_ALIGNMENT_TOP** = ``0``
  438. Vertical top alignment, usually for text-derived classes.
  439. .. _class_@GlobalScope_constant_VERTICAL_ALIGNMENT_CENTER:
  440. .. rst-class:: classref-enumeration-constant
  441. :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` **VERTICAL_ALIGNMENT_CENTER** = ``1``
  442. Vertical center alignment, usually for text-derived classes.
  443. .. _class_@GlobalScope_constant_VERTICAL_ALIGNMENT_BOTTOM:
  444. .. rst-class:: classref-enumeration-constant
  445. :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` **VERTICAL_ALIGNMENT_BOTTOM** = ``2``
  446. Vertical bottom alignment, usually for text-derived classes.
  447. .. _class_@GlobalScope_constant_VERTICAL_ALIGNMENT_FILL:
  448. .. rst-class:: classref-enumeration-constant
  449. :ref:`VerticalAlignment<enum_@GlobalScope_VerticalAlignment>` **VERTICAL_ALIGNMENT_FILL** = ``3``
  450. Expand rows to fit height, usually for text-derived classes.
  451. .. rst-class:: classref-item-separator
  452. ----
  453. .. _enum_@GlobalScope_InlineAlignment:
  454. .. rst-class:: classref-enumeration
  455. enum **InlineAlignment**:
  456. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_TOP_TO:
  457. .. rst-class:: classref-enumeration-constant
  458. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_TOP_TO** = ``0``
  459. Aligns the top of the inline object (e.g. image, table) to the position of the text specified by ``INLINE_ALIGNMENT_TO_*`` constant.
  460. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_CENTER_TO:
  461. .. rst-class:: classref-enumeration-constant
  462. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_CENTER_TO** = ``1``
  463. Aligns the center of the inline object (e.g. image, table) to the position of the text specified by ``INLINE_ALIGNMENT_TO_*`` constant.
  464. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_BASELINE_TO:
  465. .. rst-class:: classref-enumeration-constant
  466. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_BASELINE_TO** = ``3``
  467. Aligns the baseline (user defined) of the inline object (e.g. image, table) to the position of the text specified by ``INLINE_ALIGNMENT_TO_*`` constant.
  468. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_BOTTOM_TO:
  469. .. rst-class:: classref-enumeration-constant
  470. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_BOTTOM_TO** = ``2``
  471. Aligns the bottom of the inline object (e.g. image, table) to the position of the text specified by ``INLINE_ALIGNMENT_TO_*`` constant.
  472. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_TO_TOP:
  473. .. rst-class:: classref-enumeration-constant
  474. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_TO_TOP** = ``0``
  475. Aligns the position of the inline object (e.g. image, table) specified by ``INLINE_ALIGNMENT_*_TO`` constant to the top of the text.
  476. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_TO_CENTER:
  477. .. rst-class:: classref-enumeration-constant
  478. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_TO_CENTER** = ``4``
  479. Aligns the position of the inline object (e.g. image, table) specified by ``INLINE_ALIGNMENT_*_TO`` constant to the center of the text.
  480. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_TO_BASELINE:
  481. .. rst-class:: classref-enumeration-constant
  482. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_TO_BASELINE** = ``8``
  483. Aligns the position of the inline object (e.g. image, table) specified by ``INLINE_ALIGNMENT_*_TO`` constant to the baseline of the text.
  484. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_TO_BOTTOM:
  485. .. rst-class:: classref-enumeration-constant
  486. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_TO_BOTTOM** = ``12``
  487. Aligns inline object (e.g. image, table) to the bottom of the text.
  488. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_TOP:
  489. .. rst-class:: classref-enumeration-constant
  490. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_TOP** = ``0``
  491. Aligns top of the inline object (e.g. image, table) to the top of the text. Equivalent to ``INLINE_ALIGNMENT_TOP_TO | INLINE_ALIGNMENT_TO_TOP``.
  492. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_CENTER:
  493. .. rst-class:: classref-enumeration-constant
  494. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_CENTER** = ``5``
  495. Aligns center of the inline object (e.g. image, table) to the center of the text. Equivalent to ``INLINE_ALIGNMENT_CENTER_TO | INLINE_ALIGNMENT_TO_CENTER``.
  496. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_BOTTOM:
  497. .. rst-class:: classref-enumeration-constant
  498. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_BOTTOM** = ``14``
  499. Aligns bottom of the inline object (e.g. image, table) to the bottom of the text. Equivalent to ``INLINE_ALIGNMENT_BOTTOM_TO | INLINE_ALIGNMENT_TO_BOTTOM``.
  500. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_IMAGE_MASK:
  501. .. rst-class:: classref-enumeration-constant
  502. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_IMAGE_MASK** = ``3``
  503. A bit mask for ``INLINE_ALIGNMENT_*_TO`` alignment constants.
  504. .. _class_@GlobalScope_constant_INLINE_ALIGNMENT_TEXT_MASK:
  505. .. rst-class:: classref-enumeration-constant
  506. :ref:`InlineAlignment<enum_@GlobalScope_InlineAlignment>` **INLINE_ALIGNMENT_TEXT_MASK** = ``12``
  507. A bit mask for ``INLINE_ALIGNMENT_TO_*`` alignment constants.
  508. .. rst-class:: classref-item-separator
  509. ----
  510. .. _enum_@GlobalScope_EulerOrder:
  511. .. rst-class:: classref-enumeration
  512. enum **EulerOrder**:
  513. .. _class_@GlobalScope_constant_EULER_ORDER_XYZ:
  514. .. rst-class:: classref-enumeration-constant
  515. :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **EULER_ORDER_XYZ** = ``0``
  516. Specifies that Euler angles should be in XYZ order. When composing, the order is X, Y, Z. When decomposing, the order is reversed, first Z, then Y, and X last.
  517. .. _class_@GlobalScope_constant_EULER_ORDER_XZY:
  518. .. rst-class:: classref-enumeration-constant
  519. :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **EULER_ORDER_XZY** = ``1``
  520. Specifies that Euler angles should be in XZY order. When composing, the order is X, Z, Y. When decomposing, the order is reversed, first Y, then Z, and X last.
  521. .. _class_@GlobalScope_constant_EULER_ORDER_YXZ:
  522. .. rst-class:: classref-enumeration-constant
  523. :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **EULER_ORDER_YXZ** = ``2``
  524. Specifies that Euler angles should be in YXZ order. When composing, the order is Y, X, Z. When decomposing, the order is reversed, first Z, then X, and Y last.
  525. .. _class_@GlobalScope_constant_EULER_ORDER_YZX:
  526. .. rst-class:: classref-enumeration-constant
  527. :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **EULER_ORDER_YZX** = ``3``
  528. Specifies that Euler angles should be in YZX order. When composing, the order is Y, Z, X. When decomposing, the order is reversed, first X, then Z, and Y last.
  529. .. _class_@GlobalScope_constant_EULER_ORDER_ZXY:
  530. .. rst-class:: classref-enumeration-constant
  531. :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **EULER_ORDER_ZXY** = ``4``
  532. Specifies that Euler angles should be in ZXY order. When composing, the order is Z, X, Y. When decomposing, the order is reversed, first Y, then X, and Z last.
  533. .. _class_@GlobalScope_constant_EULER_ORDER_ZYX:
  534. .. rst-class:: classref-enumeration-constant
  535. :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **EULER_ORDER_ZYX** = ``5``
  536. Specifies that Euler angles should be in ZYX order. When composing, the order is Z, Y, X. When decomposing, the order is reversed, first X, then Y, and Z last.
  537. .. rst-class:: classref-item-separator
  538. ----
  539. .. _enum_@GlobalScope_Key:
  540. .. rst-class:: classref-enumeration
  541. enum **Key**:
  542. .. _class_@GlobalScope_constant_KEY_NONE:
  543. .. rst-class:: classref-enumeration-constant
  544. :ref:`Key<enum_@GlobalScope_Key>` **KEY_NONE** = ``0``
  545. Enum value which doesn't correspond to any key. This is used to initialize :ref:`Key<enum_@GlobalScope_Key>` properties with a generic state.
  546. .. _class_@GlobalScope_constant_KEY_SPECIAL:
  547. .. rst-class:: classref-enumeration-constant
  548. :ref:`Key<enum_@GlobalScope_Key>` **KEY_SPECIAL** = ``4194304``
  549. Keycodes with this bit applied are non-printable.
  550. .. _class_@GlobalScope_constant_KEY_ESCAPE:
  551. .. rst-class:: classref-enumeration-constant
  552. :ref:`Key<enum_@GlobalScope_Key>` **KEY_ESCAPE** = ``4194305``
  553. Escape key.
  554. .. _class_@GlobalScope_constant_KEY_TAB:
  555. .. rst-class:: classref-enumeration-constant
  556. :ref:`Key<enum_@GlobalScope_Key>` **KEY_TAB** = ``4194306``
  557. Tab key.
  558. .. _class_@GlobalScope_constant_KEY_BACKTAB:
  559. .. rst-class:: classref-enumeration-constant
  560. :ref:`Key<enum_@GlobalScope_Key>` **KEY_BACKTAB** = ``4194307``
  561. Shift + Tab key.
  562. .. _class_@GlobalScope_constant_KEY_BACKSPACE:
  563. .. rst-class:: classref-enumeration-constant
  564. :ref:`Key<enum_@GlobalScope_Key>` **KEY_BACKSPACE** = ``4194308``
  565. Backspace key.
  566. .. _class_@GlobalScope_constant_KEY_ENTER:
  567. .. rst-class:: classref-enumeration-constant
  568. :ref:`Key<enum_@GlobalScope_Key>` **KEY_ENTER** = ``4194309``
  569. Return key (on the main keyboard).
  570. .. _class_@GlobalScope_constant_KEY_KP_ENTER:
  571. .. rst-class:: classref-enumeration-constant
  572. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_ENTER** = ``4194310``
  573. Enter key on the numeric keypad.
  574. .. _class_@GlobalScope_constant_KEY_INSERT:
  575. .. rst-class:: classref-enumeration-constant
  576. :ref:`Key<enum_@GlobalScope_Key>` **KEY_INSERT** = ``4194311``
  577. Insert key.
  578. .. _class_@GlobalScope_constant_KEY_DELETE:
  579. .. rst-class:: classref-enumeration-constant
  580. :ref:`Key<enum_@GlobalScope_Key>` **KEY_DELETE** = ``4194312``
  581. Delete key.
  582. .. _class_@GlobalScope_constant_KEY_PAUSE:
  583. .. rst-class:: classref-enumeration-constant
  584. :ref:`Key<enum_@GlobalScope_Key>` **KEY_PAUSE** = ``4194313``
  585. Pause key.
  586. .. _class_@GlobalScope_constant_KEY_PRINT:
  587. .. rst-class:: classref-enumeration-constant
  588. :ref:`Key<enum_@GlobalScope_Key>` **KEY_PRINT** = ``4194314``
  589. Print Screen key.
  590. .. _class_@GlobalScope_constant_KEY_SYSREQ:
  591. .. rst-class:: classref-enumeration-constant
  592. :ref:`Key<enum_@GlobalScope_Key>` **KEY_SYSREQ** = ``4194315``
  593. System Request key.
  594. .. _class_@GlobalScope_constant_KEY_CLEAR:
  595. .. rst-class:: classref-enumeration-constant
  596. :ref:`Key<enum_@GlobalScope_Key>` **KEY_CLEAR** = ``4194316``
  597. Clear key.
  598. .. _class_@GlobalScope_constant_KEY_HOME:
  599. .. rst-class:: classref-enumeration-constant
  600. :ref:`Key<enum_@GlobalScope_Key>` **KEY_HOME** = ``4194317``
  601. Home key.
  602. .. _class_@GlobalScope_constant_KEY_END:
  603. .. rst-class:: classref-enumeration-constant
  604. :ref:`Key<enum_@GlobalScope_Key>` **KEY_END** = ``4194318``
  605. End key.
  606. .. _class_@GlobalScope_constant_KEY_LEFT:
  607. .. rst-class:: classref-enumeration-constant
  608. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LEFT** = ``4194319``
  609. Left arrow key.
  610. .. _class_@GlobalScope_constant_KEY_UP:
  611. .. rst-class:: classref-enumeration-constant
  612. :ref:`Key<enum_@GlobalScope_Key>` **KEY_UP** = ``4194320``
  613. Up arrow key.
  614. .. _class_@GlobalScope_constant_KEY_RIGHT:
  615. .. rst-class:: classref-enumeration-constant
  616. :ref:`Key<enum_@GlobalScope_Key>` **KEY_RIGHT** = ``4194321``
  617. Right arrow key.
  618. .. _class_@GlobalScope_constant_KEY_DOWN:
  619. .. rst-class:: classref-enumeration-constant
  620. :ref:`Key<enum_@GlobalScope_Key>` **KEY_DOWN** = ``4194322``
  621. Down arrow key.
  622. .. _class_@GlobalScope_constant_KEY_PAGEUP:
  623. .. rst-class:: classref-enumeration-constant
  624. :ref:`Key<enum_@GlobalScope_Key>` **KEY_PAGEUP** = ``4194323``
  625. Page Up key.
  626. .. _class_@GlobalScope_constant_KEY_PAGEDOWN:
  627. .. rst-class:: classref-enumeration-constant
  628. :ref:`Key<enum_@GlobalScope_Key>` **KEY_PAGEDOWN** = ``4194324``
  629. Page Down key.
  630. .. _class_@GlobalScope_constant_KEY_SHIFT:
  631. .. rst-class:: classref-enumeration-constant
  632. :ref:`Key<enum_@GlobalScope_Key>` **KEY_SHIFT** = ``4194325``
  633. Shift key.
  634. .. _class_@GlobalScope_constant_KEY_CTRL:
  635. .. rst-class:: classref-enumeration-constant
  636. :ref:`Key<enum_@GlobalScope_Key>` **KEY_CTRL** = ``4194326``
  637. Control key.
  638. .. _class_@GlobalScope_constant_KEY_META:
  639. .. rst-class:: classref-enumeration-constant
  640. :ref:`Key<enum_@GlobalScope_Key>` **KEY_META** = ``4194327``
  641. Meta key.
  642. .. _class_@GlobalScope_constant_KEY_ALT:
  643. .. rst-class:: classref-enumeration-constant
  644. :ref:`Key<enum_@GlobalScope_Key>` **KEY_ALT** = ``4194328``
  645. Alt key.
  646. .. _class_@GlobalScope_constant_KEY_CAPSLOCK:
  647. .. rst-class:: classref-enumeration-constant
  648. :ref:`Key<enum_@GlobalScope_Key>` **KEY_CAPSLOCK** = ``4194329``
  649. Caps Lock key.
  650. .. _class_@GlobalScope_constant_KEY_NUMLOCK:
  651. .. rst-class:: classref-enumeration-constant
  652. :ref:`Key<enum_@GlobalScope_Key>` **KEY_NUMLOCK** = ``4194330``
  653. Num Lock key.
  654. .. _class_@GlobalScope_constant_KEY_SCROLLLOCK:
  655. .. rst-class:: classref-enumeration-constant
  656. :ref:`Key<enum_@GlobalScope_Key>` **KEY_SCROLLLOCK** = ``4194331``
  657. Scroll Lock key.
  658. .. _class_@GlobalScope_constant_KEY_F1:
  659. .. rst-class:: classref-enumeration-constant
  660. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F1** = ``4194332``
  661. F1 key.
  662. .. _class_@GlobalScope_constant_KEY_F2:
  663. .. rst-class:: classref-enumeration-constant
  664. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F2** = ``4194333``
  665. F2 key.
  666. .. _class_@GlobalScope_constant_KEY_F3:
  667. .. rst-class:: classref-enumeration-constant
  668. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F3** = ``4194334``
  669. F3 key.
  670. .. _class_@GlobalScope_constant_KEY_F4:
  671. .. rst-class:: classref-enumeration-constant
  672. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F4** = ``4194335``
  673. F4 key.
  674. .. _class_@GlobalScope_constant_KEY_F5:
  675. .. rst-class:: classref-enumeration-constant
  676. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F5** = ``4194336``
  677. F5 key.
  678. .. _class_@GlobalScope_constant_KEY_F6:
  679. .. rst-class:: classref-enumeration-constant
  680. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F6** = ``4194337``
  681. F6 key.
  682. .. _class_@GlobalScope_constant_KEY_F7:
  683. .. rst-class:: classref-enumeration-constant
  684. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F7** = ``4194338``
  685. F7 key.
  686. .. _class_@GlobalScope_constant_KEY_F8:
  687. .. rst-class:: classref-enumeration-constant
  688. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F8** = ``4194339``
  689. F8 key.
  690. .. _class_@GlobalScope_constant_KEY_F9:
  691. .. rst-class:: classref-enumeration-constant
  692. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F9** = ``4194340``
  693. F9 key.
  694. .. _class_@GlobalScope_constant_KEY_F10:
  695. .. rst-class:: classref-enumeration-constant
  696. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F10** = ``4194341``
  697. F10 key.
  698. .. _class_@GlobalScope_constant_KEY_F11:
  699. .. rst-class:: classref-enumeration-constant
  700. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F11** = ``4194342``
  701. F11 key.
  702. .. _class_@GlobalScope_constant_KEY_F12:
  703. .. rst-class:: classref-enumeration-constant
  704. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F12** = ``4194343``
  705. F12 key.
  706. .. _class_@GlobalScope_constant_KEY_F13:
  707. .. rst-class:: classref-enumeration-constant
  708. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F13** = ``4194344``
  709. F13 key.
  710. .. _class_@GlobalScope_constant_KEY_F14:
  711. .. rst-class:: classref-enumeration-constant
  712. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F14** = ``4194345``
  713. F14 key.
  714. .. _class_@GlobalScope_constant_KEY_F15:
  715. .. rst-class:: classref-enumeration-constant
  716. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F15** = ``4194346``
  717. F15 key.
  718. .. _class_@GlobalScope_constant_KEY_F16:
  719. .. rst-class:: classref-enumeration-constant
  720. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F16** = ``4194347``
  721. F16 key.
  722. .. _class_@GlobalScope_constant_KEY_F17:
  723. .. rst-class:: classref-enumeration-constant
  724. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F17** = ``4194348``
  725. F17 key.
  726. .. _class_@GlobalScope_constant_KEY_F18:
  727. .. rst-class:: classref-enumeration-constant
  728. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F18** = ``4194349``
  729. F18 key.
  730. .. _class_@GlobalScope_constant_KEY_F19:
  731. .. rst-class:: classref-enumeration-constant
  732. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F19** = ``4194350``
  733. F19 key.
  734. .. _class_@GlobalScope_constant_KEY_F20:
  735. .. rst-class:: classref-enumeration-constant
  736. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F20** = ``4194351``
  737. F20 key.
  738. .. _class_@GlobalScope_constant_KEY_F21:
  739. .. rst-class:: classref-enumeration-constant
  740. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F21** = ``4194352``
  741. F21 key.
  742. .. _class_@GlobalScope_constant_KEY_F22:
  743. .. rst-class:: classref-enumeration-constant
  744. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F22** = ``4194353``
  745. F22 key.
  746. .. _class_@GlobalScope_constant_KEY_F23:
  747. .. rst-class:: classref-enumeration-constant
  748. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F23** = ``4194354``
  749. F23 key.
  750. .. _class_@GlobalScope_constant_KEY_F24:
  751. .. rst-class:: classref-enumeration-constant
  752. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F24** = ``4194355``
  753. F24 key.
  754. .. _class_@GlobalScope_constant_KEY_F25:
  755. .. rst-class:: classref-enumeration-constant
  756. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F25** = ``4194356``
  757. F25 key. Only supported on macOS and Linux due to a Windows limitation.
  758. .. _class_@GlobalScope_constant_KEY_F26:
  759. .. rst-class:: classref-enumeration-constant
  760. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F26** = ``4194357``
  761. F26 key. Only supported on macOS and Linux due to a Windows limitation.
  762. .. _class_@GlobalScope_constant_KEY_F27:
  763. .. rst-class:: classref-enumeration-constant
  764. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F27** = ``4194358``
  765. F27 key. Only supported on macOS and Linux due to a Windows limitation.
  766. .. _class_@GlobalScope_constant_KEY_F28:
  767. .. rst-class:: classref-enumeration-constant
  768. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F28** = ``4194359``
  769. F28 key. Only supported on macOS and Linux due to a Windows limitation.
  770. .. _class_@GlobalScope_constant_KEY_F29:
  771. .. rst-class:: classref-enumeration-constant
  772. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F29** = ``4194360``
  773. F29 key. Only supported on macOS and Linux due to a Windows limitation.
  774. .. _class_@GlobalScope_constant_KEY_F30:
  775. .. rst-class:: classref-enumeration-constant
  776. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F30** = ``4194361``
  777. F30 key. Only supported on macOS and Linux due to a Windows limitation.
  778. .. _class_@GlobalScope_constant_KEY_F31:
  779. .. rst-class:: classref-enumeration-constant
  780. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F31** = ``4194362``
  781. F31 key. Only supported on macOS and Linux due to a Windows limitation.
  782. .. _class_@GlobalScope_constant_KEY_F32:
  783. .. rst-class:: classref-enumeration-constant
  784. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F32** = ``4194363``
  785. F32 key. Only supported on macOS and Linux due to a Windows limitation.
  786. .. _class_@GlobalScope_constant_KEY_F33:
  787. .. rst-class:: classref-enumeration-constant
  788. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F33** = ``4194364``
  789. F33 key. Only supported on macOS and Linux due to a Windows limitation.
  790. .. _class_@GlobalScope_constant_KEY_F34:
  791. .. rst-class:: classref-enumeration-constant
  792. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F34** = ``4194365``
  793. F34 key. Only supported on macOS and Linux due to a Windows limitation.
  794. .. _class_@GlobalScope_constant_KEY_F35:
  795. .. rst-class:: classref-enumeration-constant
  796. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F35** = ``4194366``
  797. F35 key. Only supported on macOS and Linux due to a Windows limitation.
  798. .. _class_@GlobalScope_constant_KEY_KP_MULTIPLY:
  799. .. rst-class:: classref-enumeration-constant
  800. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_MULTIPLY** = ``4194433``
  801. Multiply (\*) key on the numeric keypad.
  802. .. _class_@GlobalScope_constant_KEY_KP_DIVIDE:
  803. .. rst-class:: classref-enumeration-constant
  804. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_DIVIDE** = ``4194434``
  805. Divide (/) key on the numeric keypad.
  806. .. _class_@GlobalScope_constant_KEY_KP_SUBTRACT:
  807. .. rst-class:: classref-enumeration-constant
  808. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_SUBTRACT** = ``4194435``
  809. Subtract (-) key on the numeric keypad.
  810. .. _class_@GlobalScope_constant_KEY_KP_PERIOD:
  811. .. rst-class:: classref-enumeration-constant
  812. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_PERIOD** = ``4194436``
  813. Period (.) key on the numeric keypad.
  814. .. _class_@GlobalScope_constant_KEY_KP_ADD:
  815. .. rst-class:: classref-enumeration-constant
  816. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_ADD** = ``4194437``
  817. Add (+) key on the numeric keypad.
  818. .. _class_@GlobalScope_constant_KEY_KP_0:
  819. .. rst-class:: classref-enumeration-constant
  820. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_0** = ``4194438``
  821. Number 0 on the numeric keypad.
  822. .. _class_@GlobalScope_constant_KEY_KP_1:
  823. .. rst-class:: classref-enumeration-constant
  824. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_1** = ``4194439``
  825. Number 1 on the numeric keypad.
  826. .. _class_@GlobalScope_constant_KEY_KP_2:
  827. .. rst-class:: classref-enumeration-constant
  828. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_2** = ``4194440``
  829. Number 2 on the numeric keypad.
  830. .. _class_@GlobalScope_constant_KEY_KP_3:
  831. .. rst-class:: classref-enumeration-constant
  832. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_3** = ``4194441``
  833. Number 3 on the numeric keypad.
  834. .. _class_@GlobalScope_constant_KEY_KP_4:
  835. .. rst-class:: classref-enumeration-constant
  836. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_4** = ``4194442``
  837. Number 4 on the numeric keypad.
  838. .. _class_@GlobalScope_constant_KEY_KP_5:
  839. .. rst-class:: classref-enumeration-constant
  840. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_5** = ``4194443``
  841. Number 5 on the numeric keypad.
  842. .. _class_@GlobalScope_constant_KEY_KP_6:
  843. .. rst-class:: classref-enumeration-constant
  844. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_6** = ``4194444``
  845. Number 6 on the numeric keypad.
  846. .. _class_@GlobalScope_constant_KEY_KP_7:
  847. .. rst-class:: classref-enumeration-constant
  848. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_7** = ``4194445``
  849. Number 7 on the numeric keypad.
  850. .. _class_@GlobalScope_constant_KEY_KP_8:
  851. .. rst-class:: classref-enumeration-constant
  852. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_8** = ``4194446``
  853. Number 8 on the numeric keypad.
  854. .. _class_@GlobalScope_constant_KEY_KP_9:
  855. .. rst-class:: classref-enumeration-constant
  856. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KP_9** = ``4194447``
  857. Number 9 on the numeric keypad.
  858. .. _class_@GlobalScope_constant_KEY_MENU:
  859. .. rst-class:: classref-enumeration-constant
  860. :ref:`Key<enum_@GlobalScope_Key>` **KEY_MENU** = ``4194370``
  861. Context menu key.
  862. .. _class_@GlobalScope_constant_KEY_HYPER:
  863. .. rst-class:: classref-enumeration-constant
  864. :ref:`Key<enum_@GlobalScope_Key>` **KEY_HYPER** = ``4194371``
  865. Hyper key. (On Linux/X11 only).
  866. .. _class_@GlobalScope_constant_KEY_HELP:
  867. .. rst-class:: classref-enumeration-constant
  868. :ref:`Key<enum_@GlobalScope_Key>` **KEY_HELP** = ``4194373``
  869. Help key.
  870. .. _class_@GlobalScope_constant_KEY_BACK:
  871. .. rst-class:: classref-enumeration-constant
  872. :ref:`Key<enum_@GlobalScope_Key>` **KEY_BACK** = ``4194376``
  873. Media back key. Not to be confused with the Back button on an Android device.
  874. .. _class_@GlobalScope_constant_KEY_FORWARD:
  875. .. rst-class:: classref-enumeration-constant
  876. :ref:`Key<enum_@GlobalScope_Key>` **KEY_FORWARD** = ``4194377``
  877. Media forward key.
  878. .. _class_@GlobalScope_constant_KEY_STOP:
  879. .. rst-class:: classref-enumeration-constant
  880. :ref:`Key<enum_@GlobalScope_Key>` **KEY_STOP** = ``4194378``
  881. Media stop key.
  882. .. _class_@GlobalScope_constant_KEY_REFRESH:
  883. .. rst-class:: classref-enumeration-constant
  884. :ref:`Key<enum_@GlobalScope_Key>` **KEY_REFRESH** = ``4194379``
  885. Media refresh key.
  886. .. _class_@GlobalScope_constant_KEY_VOLUMEDOWN:
  887. .. rst-class:: classref-enumeration-constant
  888. :ref:`Key<enum_@GlobalScope_Key>` **KEY_VOLUMEDOWN** = ``4194380``
  889. Volume down key.
  890. .. _class_@GlobalScope_constant_KEY_VOLUMEMUTE:
  891. .. rst-class:: classref-enumeration-constant
  892. :ref:`Key<enum_@GlobalScope_Key>` **KEY_VOLUMEMUTE** = ``4194381``
  893. Mute volume key.
  894. .. _class_@GlobalScope_constant_KEY_VOLUMEUP:
  895. .. rst-class:: classref-enumeration-constant
  896. :ref:`Key<enum_@GlobalScope_Key>` **KEY_VOLUMEUP** = ``4194382``
  897. Volume up key.
  898. .. _class_@GlobalScope_constant_KEY_MEDIAPLAY:
  899. .. rst-class:: classref-enumeration-constant
  900. :ref:`Key<enum_@GlobalScope_Key>` **KEY_MEDIAPLAY** = ``4194388``
  901. Media play key.
  902. .. _class_@GlobalScope_constant_KEY_MEDIASTOP:
  903. .. rst-class:: classref-enumeration-constant
  904. :ref:`Key<enum_@GlobalScope_Key>` **KEY_MEDIASTOP** = ``4194389``
  905. Media stop key.
  906. .. _class_@GlobalScope_constant_KEY_MEDIAPREVIOUS:
  907. .. rst-class:: classref-enumeration-constant
  908. :ref:`Key<enum_@GlobalScope_Key>` **KEY_MEDIAPREVIOUS** = ``4194390``
  909. Previous song key.
  910. .. _class_@GlobalScope_constant_KEY_MEDIANEXT:
  911. .. rst-class:: classref-enumeration-constant
  912. :ref:`Key<enum_@GlobalScope_Key>` **KEY_MEDIANEXT** = ``4194391``
  913. Next song key.
  914. .. _class_@GlobalScope_constant_KEY_MEDIARECORD:
  915. .. rst-class:: classref-enumeration-constant
  916. :ref:`Key<enum_@GlobalScope_Key>` **KEY_MEDIARECORD** = ``4194392``
  917. Media record key.
  918. .. _class_@GlobalScope_constant_KEY_HOMEPAGE:
  919. .. rst-class:: classref-enumeration-constant
  920. :ref:`Key<enum_@GlobalScope_Key>` **KEY_HOMEPAGE** = ``4194393``
  921. Home page key.
  922. .. _class_@GlobalScope_constant_KEY_FAVORITES:
  923. .. rst-class:: classref-enumeration-constant
  924. :ref:`Key<enum_@GlobalScope_Key>` **KEY_FAVORITES** = ``4194394``
  925. Favorites key.
  926. .. _class_@GlobalScope_constant_KEY_SEARCH:
  927. .. rst-class:: classref-enumeration-constant
  928. :ref:`Key<enum_@GlobalScope_Key>` **KEY_SEARCH** = ``4194395``
  929. Search key.
  930. .. _class_@GlobalScope_constant_KEY_STANDBY:
  931. .. rst-class:: classref-enumeration-constant
  932. :ref:`Key<enum_@GlobalScope_Key>` **KEY_STANDBY** = ``4194396``
  933. Standby key.
  934. .. _class_@GlobalScope_constant_KEY_OPENURL:
  935. .. rst-class:: classref-enumeration-constant
  936. :ref:`Key<enum_@GlobalScope_Key>` **KEY_OPENURL** = ``4194397``
  937. Open URL / Launch Browser key.
  938. .. _class_@GlobalScope_constant_KEY_LAUNCHMAIL:
  939. .. rst-class:: classref-enumeration-constant
  940. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCHMAIL** = ``4194398``
  941. Launch Mail key.
  942. .. _class_@GlobalScope_constant_KEY_LAUNCHMEDIA:
  943. .. rst-class:: classref-enumeration-constant
  944. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCHMEDIA** = ``4194399``
  945. Launch Media key.
  946. .. _class_@GlobalScope_constant_KEY_LAUNCH0:
  947. .. rst-class:: classref-enumeration-constant
  948. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH0** = ``4194400``
  949. Launch Shortcut 0 key.
  950. .. _class_@GlobalScope_constant_KEY_LAUNCH1:
  951. .. rst-class:: classref-enumeration-constant
  952. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH1** = ``4194401``
  953. Launch Shortcut 1 key.
  954. .. _class_@GlobalScope_constant_KEY_LAUNCH2:
  955. .. rst-class:: classref-enumeration-constant
  956. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH2** = ``4194402``
  957. Launch Shortcut 2 key.
  958. .. _class_@GlobalScope_constant_KEY_LAUNCH3:
  959. .. rst-class:: classref-enumeration-constant
  960. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH3** = ``4194403``
  961. Launch Shortcut 3 key.
  962. .. _class_@GlobalScope_constant_KEY_LAUNCH4:
  963. .. rst-class:: classref-enumeration-constant
  964. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH4** = ``4194404``
  965. Launch Shortcut 4 key.
  966. .. _class_@GlobalScope_constant_KEY_LAUNCH5:
  967. .. rst-class:: classref-enumeration-constant
  968. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH5** = ``4194405``
  969. Launch Shortcut 5 key.
  970. .. _class_@GlobalScope_constant_KEY_LAUNCH6:
  971. .. rst-class:: classref-enumeration-constant
  972. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH6** = ``4194406``
  973. Launch Shortcut 6 key.
  974. .. _class_@GlobalScope_constant_KEY_LAUNCH7:
  975. .. rst-class:: classref-enumeration-constant
  976. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH7** = ``4194407``
  977. Launch Shortcut 7 key.
  978. .. _class_@GlobalScope_constant_KEY_LAUNCH8:
  979. .. rst-class:: classref-enumeration-constant
  980. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH8** = ``4194408``
  981. Launch Shortcut 8 key.
  982. .. _class_@GlobalScope_constant_KEY_LAUNCH9:
  983. .. rst-class:: classref-enumeration-constant
  984. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCH9** = ``4194409``
  985. Launch Shortcut 9 key.
  986. .. _class_@GlobalScope_constant_KEY_LAUNCHA:
  987. .. rst-class:: classref-enumeration-constant
  988. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCHA** = ``4194410``
  989. Launch Shortcut A key.
  990. .. _class_@GlobalScope_constant_KEY_LAUNCHB:
  991. .. rst-class:: classref-enumeration-constant
  992. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCHB** = ``4194411``
  993. Launch Shortcut B key.
  994. .. _class_@GlobalScope_constant_KEY_LAUNCHC:
  995. .. rst-class:: classref-enumeration-constant
  996. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCHC** = ``4194412``
  997. Launch Shortcut C key.
  998. .. _class_@GlobalScope_constant_KEY_LAUNCHD:
  999. .. rst-class:: classref-enumeration-constant
  1000. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCHD** = ``4194413``
  1001. Launch Shortcut D key.
  1002. .. _class_@GlobalScope_constant_KEY_LAUNCHE:
  1003. .. rst-class:: classref-enumeration-constant
  1004. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCHE** = ``4194414``
  1005. Launch Shortcut E key.
  1006. .. _class_@GlobalScope_constant_KEY_LAUNCHF:
  1007. .. rst-class:: classref-enumeration-constant
  1008. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LAUNCHF** = ``4194415``
  1009. Launch Shortcut F key.
  1010. .. _class_@GlobalScope_constant_KEY_GLOBE:
  1011. .. rst-class:: classref-enumeration-constant
  1012. :ref:`Key<enum_@GlobalScope_Key>` **KEY_GLOBE** = ``4194416``
  1013. "Globe" key on Mac / iPad keyboard.
  1014. .. _class_@GlobalScope_constant_KEY_KEYBOARD:
  1015. .. rst-class:: classref-enumeration-constant
  1016. :ref:`Key<enum_@GlobalScope_Key>` **KEY_KEYBOARD** = ``4194417``
  1017. "On-screen keyboard" key on iPad keyboard.
  1018. .. _class_@GlobalScope_constant_KEY_JIS_EISU:
  1019. .. rst-class:: classref-enumeration-constant
  1020. :ref:`Key<enum_@GlobalScope_Key>` **KEY_JIS_EISU** = ``4194418``
  1021. 英数 key on Mac keyboard.
  1022. .. _class_@GlobalScope_constant_KEY_JIS_KANA:
  1023. .. rst-class:: classref-enumeration-constant
  1024. :ref:`Key<enum_@GlobalScope_Key>` **KEY_JIS_KANA** = ``4194419``
  1025. かな key on Mac keyboard.
  1026. .. _class_@GlobalScope_constant_KEY_UNKNOWN:
  1027. .. rst-class:: classref-enumeration-constant
  1028. :ref:`Key<enum_@GlobalScope_Key>` **KEY_UNKNOWN** = ``8388607``
  1029. Unknown key.
  1030. .. _class_@GlobalScope_constant_KEY_SPACE:
  1031. .. rst-class:: classref-enumeration-constant
  1032. :ref:`Key<enum_@GlobalScope_Key>` **KEY_SPACE** = ``32``
  1033. Space key.
  1034. .. _class_@GlobalScope_constant_KEY_EXCLAM:
  1035. .. rst-class:: classref-enumeration-constant
  1036. :ref:`Key<enum_@GlobalScope_Key>` **KEY_EXCLAM** = ``33``
  1037. ! key.
  1038. .. _class_@GlobalScope_constant_KEY_QUOTEDBL:
  1039. .. rst-class:: classref-enumeration-constant
  1040. :ref:`Key<enum_@GlobalScope_Key>` **KEY_QUOTEDBL** = ``34``
  1041. " key.
  1042. .. _class_@GlobalScope_constant_KEY_NUMBERSIGN:
  1043. .. rst-class:: classref-enumeration-constant
  1044. :ref:`Key<enum_@GlobalScope_Key>` **KEY_NUMBERSIGN** = ``35``
  1045. # key.
  1046. .. _class_@GlobalScope_constant_KEY_DOLLAR:
  1047. .. rst-class:: classref-enumeration-constant
  1048. :ref:`Key<enum_@GlobalScope_Key>` **KEY_DOLLAR** = ``36``
  1049. $ key.
  1050. .. _class_@GlobalScope_constant_KEY_PERCENT:
  1051. .. rst-class:: classref-enumeration-constant
  1052. :ref:`Key<enum_@GlobalScope_Key>` **KEY_PERCENT** = ``37``
  1053. % key.
  1054. .. _class_@GlobalScope_constant_KEY_AMPERSAND:
  1055. .. rst-class:: classref-enumeration-constant
  1056. :ref:`Key<enum_@GlobalScope_Key>` **KEY_AMPERSAND** = ``38``
  1057. & key.
  1058. .. _class_@GlobalScope_constant_KEY_APOSTROPHE:
  1059. .. rst-class:: classref-enumeration-constant
  1060. :ref:`Key<enum_@GlobalScope_Key>` **KEY_APOSTROPHE** = ``39``
  1061. ' key.
  1062. .. _class_@GlobalScope_constant_KEY_PARENLEFT:
  1063. .. rst-class:: classref-enumeration-constant
  1064. :ref:`Key<enum_@GlobalScope_Key>` **KEY_PARENLEFT** = ``40``
  1065. ( key.
  1066. .. _class_@GlobalScope_constant_KEY_PARENRIGHT:
  1067. .. rst-class:: classref-enumeration-constant
  1068. :ref:`Key<enum_@GlobalScope_Key>` **KEY_PARENRIGHT** = ``41``
  1069. ) key.
  1070. .. _class_@GlobalScope_constant_KEY_ASTERISK:
  1071. .. rst-class:: classref-enumeration-constant
  1072. :ref:`Key<enum_@GlobalScope_Key>` **KEY_ASTERISK** = ``42``
  1073. \* key.
  1074. .. _class_@GlobalScope_constant_KEY_PLUS:
  1075. .. rst-class:: classref-enumeration-constant
  1076. :ref:`Key<enum_@GlobalScope_Key>` **KEY_PLUS** = ``43``
  1077. + key.
  1078. .. _class_@GlobalScope_constant_KEY_COMMA:
  1079. .. rst-class:: classref-enumeration-constant
  1080. :ref:`Key<enum_@GlobalScope_Key>` **KEY_COMMA** = ``44``
  1081. , key.
  1082. .. _class_@GlobalScope_constant_KEY_MINUS:
  1083. .. rst-class:: classref-enumeration-constant
  1084. :ref:`Key<enum_@GlobalScope_Key>` **KEY_MINUS** = ``45``
  1085. - key.
  1086. .. _class_@GlobalScope_constant_KEY_PERIOD:
  1087. .. rst-class:: classref-enumeration-constant
  1088. :ref:`Key<enum_@GlobalScope_Key>` **KEY_PERIOD** = ``46``
  1089. . key.
  1090. .. _class_@GlobalScope_constant_KEY_SLASH:
  1091. .. rst-class:: classref-enumeration-constant
  1092. :ref:`Key<enum_@GlobalScope_Key>` **KEY_SLASH** = ``47``
  1093. / key.
  1094. .. _class_@GlobalScope_constant_KEY_0:
  1095. .. rst-class:: classref-enumeration-constant
  1096. :ref:`Key<enum_@GlobalScope_Key>` **KEY_0** = ``48``
  1097. Number 0 key.
  1098. .. _class_@GlobalScope_constant_KEY_1:
  1099. .. rst-class:: classref-enumeration-constant
  1100. :ref:`Key<enum_@GlobalScope_Key>` **KEY_1** = ``49``
  1101. Number 1 key.
  1102. .. _class_@GlobalScope_constant_KEY_2:
  1103. .. rst-class:: classref-enumeration-constant
  1104. :ref:`Key<enum_@GlobalScope_Key>` **KEY_2** = ``50``
  1105. Number 2 key.
  1106. .. _class_@GlobalScope_constant_KEY_3:
  1107. .. rst-class:: classref-enumeration-constant
  1108. :ref:`Key<enum_@GlobalScope_Key>` **KEY_3** = ``51``
  1109. Number 3 key.
  1110. .. _class_@GlobalScope_constant_KEY_4:
  1111. .. rst-class:: classref-enumeration-constant
  1112. :ref:`Key<enum_@GlobalScope_Key>` **KEY_4** = ``52``
  1113. Number 4 key.
  1114. .. _class_@GlobalScope_constant_KEY_5:
  1115. .. rst-class:: classref-enumeration-constant
  1116. :ref:`Key<enum_@GlobalScope_Key>` **KEY_5** = ``53``
  1117. Number 5 key.
  1118. .. _class_@GlobalScope_constant_KEY_6:
  1119. .. rst-class:: classref-enumeration-constant
  1120. :ref:`Key<enum_@GlobalScope_Key>` **KEY_6** = ``54``
  1121. Number 6 key.
  1122. .. _class_@GlobalScope_constant_KEY_7:
  1123. .. rst-class:: classref-enumeration-constant
  1124. :ref:`Key<enum_@GlobalScope_Key>` **KEY_7** = ``55``
  1125. Number 7 key.
  1126. .. _class_@GlobalScope_constant_KEY_8:
  1127. .. rst-class:: classref-enumeration-constant
  1128. :ref:`Key<enum_@GlobalScope_Key>` **KEY_8** = ``56``
  1129. Number 8 key.
  1130. .. _class_@GlobalScope_constant_KEY_9:
  1131. .. rst-class:: classref-enumeration-constant
  1132. :ref:`Key<enum_@GlobalScope_Key>` **KEY_9** = ``57``
  1133. Number 9 key.
  1134. .. _class_@GlobalScope_constant_KEY_COLON:
  1135. .. rst-class:: classref-enumeration-constant
  1136. :ref:`Key<enum_@GlobalScope_Key>` **KEY_COLON** = ``58``
  1137. : key.
  1138. .. _class_@GlobalScope_constant_KEY_SEMICOLON:
  1139. .. rst-class:: classref-enumeration-constant
  1140. :ref:`Key<enum_@GlobalScope_Key>` **KEY_SEMICOLON** = ``59``
  1141. ; key.
  1142. .. _class_@GlobalScope_constant_KEY_LESS:
  1143. .. rst-class:: classref-enumeration-constant
  1144. :ref:`Key<enum_@GlobalScope_Key>` **KEY_LESS** = ``60``
  1145. < key.
  1146. .. _class_@GlobalScope_constant_KEY_EQUAL:
  1147. .. rst-class:: classref-enumeration-constant
  1148. :ref:`Key<enum_@GlobalScope_Key>` **KEY_EQUAL** = ``61``
  1149. = key.
  1150. .. _class_@GlobalScope_constant_KEY_GREATER:
  1151. .. rst-class:: classref-enumeration-constant
  1152. :ref:`Key<enum_@GlobalScope_Key>` **KEY_GREATER** = ``62``
  1153. > key.
  1154. .. _class_@GlobalScope_constant_KEY_QUESTION:
  1155. .. rst-class:: classref-enumeration-constant
  1156. :ref:`Key<enum_@GlobalScope_Key>` **KEY_QUESTION** = ``63``
  1157. ? key.
  1158. .. _class_@GlobalScope_constant_KEY_AT:
  1159. .. rst-class:: classref-enumeration-constant
  1160. :ref:`Key<enum_@GlobalScope_Key>` **KEY_AT** = ``64``
  1161. @ key.
  1162. .. _class_@GlobalScope_constant_KEY_A:
  1163. .. rst-class:: classref-enumeration-constant
  1164. :ref:`Key<enum_@GlobalScope_Key>` **KEY_A** = ``65``
  1165. A key.
  1166. .. _class_@GlobalScope_constant_KEY_B:
  1167. .. rst-class:: classref-enumeration-constant
  1168. :ref:`Key<enum_@GlobalScope_Key>` **KEY_B** = ``66``
  1169. B key.
  1170. .. _class_@GlobalScope_constant_KEY_C:
  1171. .. rst-class:: classref-enumeration-constant
  1172. :ref:`Key<enum_@GlobalScope_Key>` **KEY_C** = ``67``
  1173. C key.
  1174. .. _class_@GlobalScope_constant_KEY_D:
  1175. .. rst-class:: classref-enumeration-constant
  1176. :ref:`Key<enum_@GlobalScope_Key>` **KEY_D** = ``68``
  1177. D key.
  1178. .. _class_@GlobalScope_constant_KEY_E:
  1179. .. rst-class:: classref-enumeration-constant
  1180. :ref:`Key<enum_@GlobalScope_Key>` **KEY_E** = ``69``
  1181. E key.
  1182. .. _class_@GlobalScope_constant_KEY_F:
  1183. .. rst-class:: classref-enumeration-constant
  1184. :ref:`Key<enum_@GlobalScope_Key>` **KEY_F** = ``70``
  1185. F key.
  1186. .. _class_@GlobalScope_constant_KEY_G:
  1187. .. rst-class:: classref-enumeration-constant
  1188. :ref:`Key<enum_@GlobalScope_Key>` **KEY_G** = ``71``
  1189. G key.
  1190. .. _class_@GlobalScope_constant_KEY_H:
  1191. .. rst-class:: classref-enumeration-constant
  1192. :ref:`Key<enum_@GlobalScope_Key>` **KEY_H** = ``72``
  1193. H key.
  1194. .. _class_@GlobalScope_constant_KEY_I:
  1195. .. rst-class:: classref-enumeration-constant
  1196. :ref:`Key<enum_@GlobalScope_Key>` **KEY_I** = ``73``
  1197. I key.
  1198. .. _class_@GlobalScope_constant_KEY_J:
  1199. .. rst-class:: classref-enumeration-constant
  1200. :ref:`Key<enum_@GlobalScope_Key>` **KEY_J** = ``74``
  1201. J key.
  1202. .. _class_@GlobalScope_constant_KEY_K:
  1203. .. rst-class:: classref-enumeration-constant
  1204. :ref:`Key<enum_@GlobalScope_Key>` **KEY_K** = ``75``
  1205. K key.
  1206. .. _class_@GlobalScope_constant_KEY_L:
  1207. .. rst-class:: classref-enumeration-constant
  1208. :ref:`Key<enum_@GlobalScope_Key>` **KEY_L** = ``76``
  1209. L key.
  1210. .. _class_@GlobalScope_constant_KEY_M:
  1211. .. rst-class:: classref-enumeration-constant
  1212. :ref:`Key<enum_@GlobalScope_Key>` **KEY_M** = ``77``
  1213. M key.
  1214. .. _class_@GlobalScope_constant_KEY_N:
  1215. .. rst-class:: classref-enumeration-constant
  1216. :ref:`Key<enum_@GlobalScope_Key>` **KEY_N** = ``78``
  1217. N key.
  1218. .. _class_@GlobalScope_constant_KEY_O:
  1219. .. rst-class:: classref-enumeration-constant
  1220. :ref:`Key<enum_@GlobalScope_Key>` **KEY_O** = ``79``
  1221. O key.
  1222. .. _class_@GlobalScope_constant_KEY_P:
  1223. .. rst-class:: classref-enumeration-constant
  1224. :ref:`Key<enum_@GlobalScope_Key>` **KEY_P** = ``80``
  1225. P key.
  1226. .. _class_@GlobalScope_constant_KEY_Q:
  1227. .. rst-class:: classref-enumeration-constant
  1228. :ref:`Key<enum_@GlobalScope_Key>` **KEY_Q** = ``81``
  1229. Q key.
  1230. .. _class_@GlobalScope_constant_KEY_R:
  1231. .. rst-class:: classref-enumeration-constant
  1232. :ref:`Key<enum_@GlobalScope_Key>` **KEY_R** = ``82``
  1233. R key.
  1234. .. _class_@GlobalScope_constant_KEY_S:
  1235. .. rst-class:: classref-enumeration-constant
  1236. :ref:`Key<enum_@GlobalScope_Key>` **KEY_S** = ``83``
  1237. S key.
  1238. .. _class_@GlobalScope_constant_KEY_T:
  1239. .. rst-class:: classref-enumeration-constant
  1240. :ref:`Key<enum_@GlobalScope_Key>` **KEY_T** = ``84``
  1241. T key.
  1242. .. _class_@GlobalScope_constant_KEY_U:
  1243. .. rst-class:: classref-enumeration-constant
  1244. :ref:`Key<enum_@GlobalScope_Key>` **KEY_U** = ``85``
  1245. U key.
  1246. .. _class_@GlobalScope_constant_KEY_V:
  1247. .. rst-class:: classref-enumeration-constant
  1248. :ref:`Key<enum_@GlobalScope_Key>` **KEY_V** = ``86``
  1249. V key.
  1250. .. _class_@GlobalScope_constant_KEY_W:
  1251. .. rst-class:: classref-enumeration-constant
  1252. :ref:`Key<enum_@GlobalScope_Key>` **KEY_W** = ``87``
  1253. W key.
  1254. .. _class_@GlobalScope_constant_KEY_X:
  1255. .. rst-class:: classref-enumeration-constant
  1256. :ref:`Key<enum_@GlobalScope_Key>` **KEY_X** = ``88``
  1257. X key.
  1258. .. _class_@GlobalScope_constant_KEY_Y:
  1259. .. rst-class:: classref-enumeration-constant
  1260. :ref:`Key<enum_@GlobalScope_Key>` **KEY_Y** = ``89``
  1261. Y key.
  1262. .. _class_@GlobalScope_constant_KEY_Z:
  1263. .. rst-class:: classref-enumeration-constant
  1264. :ref:`Key<enum_@GlobalScope_Key>` **KEY_Z** = ``90``
  1265. Z key.
  1266. .. _class_@GlobalScope_constant_KEY_BRACKETLEFT:
  1267. .. rst-class:: classref-enumeration-constant
  1268. :ref:`Key<enum_@GlobalScope_Key>` **KEY_BRACKETLEFT** = ``91``
  1269. [ key.
  1270. .. _class_@GlobalScope_constant_KEY_BACKSLASH:
  1271. .. rst-class:: classref-enumeration-constant
  1272. :ref:`Key<enum_@GlobalScope_Key>` **KEY_BACKSLASH** = ``92``
  1273. \\ key.
  1274. .. _class_@GlobalScope_constant_KEY_BRACKETRIGHT:
  1275. .. rst-class:: classref-enumeration-constant
  1276. :ref:`Key<enum_@GlobalScope_Key>` **KEY_BRACKETRIGHT** = ``93``
  1277. ] key.
  1278. .. _class_@GlobalScope_constant_KEY_ASCIICIRCUM:
  1279. .. rst-class:: classref-enumeration-constant
  1280. :ref:`Key<enum_@GlobalScope_Key>` **KEY_ASCIICIRCUM** = ``94``
  1281. ^ key.
  1282. .. _class_@GlobalScope_constant_KEY_UNDERSCORE:
  1283. .. rst-class:: classref-enumeration-constant
  1284. :ref:`Key<enum_@GlobalScope_Key>` **KEY_UNDERSCORE** = ``95``
  1285. \_ key.
  1286. .. _class_@GlobalScope_constant_KEY_QUOTELEFT:
  1287. .. rst-class:: classref-enumeration-constant
  1288. :ref:`Key<enum_@GlobalScope_Key>` **KEY_QUOTELEFT** = ``96``
  1289. ` key.
  1290. .. _class_@GlobalScope_constant_KEY_BRACELEFT:
  1291. .. rst-class:: classref-enumeration-constant
  1292. :ref:`Key<enum_@GlobalScope_Key>` **KEY_BRACELEFT** = ``123``
  1293. { key.
  1294. .. _class_@GlobalScope_constant_KEY_BAR:
  1295. .. rst-class:: classref-enumeration-constant
  1296. :ref:`Key<enum_@GlobalScope_Key>` **KEY_BAR** = ``124``
  1297. | key.
  1298. .. _class_@GlobalScope_constant_KEY_BRACERIGHT:
  1299. .. rst-class:: classref-enumeration-constant
  1300. :ref:`Key<enum_@GlobalScope_Key>` **KEY_BRACERIGHT** = ``125``
  1301. } key.
  1302. .. _class_@GlobalScope_constant_KEY_ASCIITILDE:
  1303. .. rst-class:: classref-enumeration-constant
  1304. :ref:`Key<enum_@GlobalScope_Key>` **KEY_ASCIITILDE** = ``126``
  1305. ~ key.
  1306. .. _class_@GlobalScope_constant_KEY_YEN:
  1307. .. rst-class:: classref-enumeration-constant
  1308. :ref:`Key<enum_@GlobalScope_Key>` **KEY_YEN** = ``165``
  1309. ¥ key.
  1310. .. _class_@GlobalScope_constant_KEY_SECTION:
  1311. .. rst-class:: classref-enumeration-constant
  1312. :ref:`Key<enum_@GlobalScope_Key>` **KEY_SECTION** = ``167``
  1313. § key.
  1314. .. rst-class:: classref-item-separator
  1315. ----
  1316. .. _enum_@GlobalScope_KeyModifierMask:
  1317. .. rst-class:: classref-enumeration
  1318. flags **KeyModifierMask**:
  1319. .. _class_@GlobalScope_constant_KEY_CODE_MASK:
  1320. .. rst-class:: classref-enumeration-constant
  1321. :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>` **KEY_CODE_MASK** = ``8388607``
  1322. Key Code mask.
  1323. .. _class_@GlobalScope_constant_KEY_MODIFIER_MASK:
  1324. .. rst-class:: classref-enumeration-constant
  1325. :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>` **KEY_MODIFIER_MASK** = ``532676608``
  1326. Modifier key mask.
  1327. .. _class_@GlobalScope_constant_KEY_MASK_CMD_OR_CTRL:
  1328. .. rst-class:: classref-enumeration-constant
  1329. :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>` **KEY_MASK_CMD_OR_CTRL** = ``16777216``
  1330. Automatically remapped to :ref:`KEY_META<class_@GlobalScope_constant_KEY_META>` on macOS and :ref:`KEY_CTRL<class_@GlobalScope_constant_KEY_CTRL>` on other platforms, this mask is never set in the actual events, and should be used for key mapping only.
  1331. .. _class_@GlobalScope_constant_KEY_MASK_SHIFT:
  1332. .. rst-class:: classref-enumeration-constant
  1333. :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>` **KEY_MASK_SHIFT** = ``33554432``
  1334. Shift key mask.
  1335. .. _class_@GlobalScope_constant_KEY_MASK_ALT:
  1336. .. rst-class:: classref-enumeration-constant
  1337. :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>` **KEY_MASK_ALT** = ``67108864``
  1338. Alt or Option (on macOS) key mask.
  1339. .. _class_@GlobalScope_constant_KEY_MASK_META:
  1340. .. rst-class:: classref-enumeration-constant
  1341. :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>` **KEY_MASK_META** = ``134217728``
  1342. Command (on macOS) or Meta/Windows key mask.
  1343. .. _class_@GlobalScope_constant_KEY_MASK_CTRL:
  1344. .. rst-class:: classref-enumeration-constant
  1345. :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>` **KEY_MASK_CTRL** = ``268435456``
  1346. Control key mask.
  1347. .. _class_@GlobalScope_constant_KEY_MASK_KPAD:
  1348. .. rst-class:: classref-enumeration-constant
  1349. :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>` **KEY_MASK_KPAD** = ``536870912``
  1350. Keypad key mask.
  1351. .. _class_@GlobalScope_constant_KEY_MASK_GROUP_SWITCH:
  1352. .. rst-class:: classref-enumeration-constant
  1353. :ref:`KeyModifierMask<enum_@GlobalScope_KeyModifierMask>` **KEY_MASK_GROUP_SWITCH** = ``1073741824``
  1354. Group Switch key mask.
  1355. .. rst-class:: classref-item-separator
  1356. ----
  1357. .. _enum_@GlobalScope_KeyLocation:
  1358. .. rst-class:: classref-enumeration
  1359. enum **KeyLocation**:
  1360. .. _class_@GlobalScope_constant_KEY_LOCATION_UNSPECIFIED:
  1361. .. rst-class:: classref-enumeration-constant
  1362. :ref:`KeyLocation<enum_@GlobalScope_KeyLocation>` **KEY_LOCATION_UNSPECIFIED** = ``0``
  1363. Used for keys which only appear once, or when a comparison doesn't need to differentiate the ``LEFT`` and ``RIGHT`` versions.
  1364. For example, when using :ref:`InputEvent.is_match<class_InputEvent_method_is_match>`, an event which has :ref:`KEY_LOCATION_UNSPECIFIED<class_@GlobalScope_constant_KEY_LOCATION_UNSPECIFIED>` will match any :ref:`KeyLocation<enum_@GlobalScope_KeyLocation>` on the passed event.
  1365. .. _class_@GlobalScope_constant_KEY_LOCATION_LEFT:
  1366. .. rst-class:: classref-enumeration-constant
  1367. :ref:`KeyLocation<enum_@GlobalScope_KeyLocation>` **KEY_LOCATION_LEFT** = ``1``
  1368. A key which is to the left of its twin.
  1369. .. _class_@GlobalScope_constant_KEY_LOCATION_RIGHT:
  1370. .. rst-class:: classref-enumeration-constant
  1371. :ref:`KeyLocation<enum_@GlobalScope_KeyLocation>` **KEY_LOCATION_RIGHT** = ``2``
  1372. A key which is to the right of its twin.
  1373. .. rst-class:: classref-item-separator
  1374. ----
  1375. .. _enum_@GlobalScope_MouseButton:
  1376. .. rst-class:: classref-enumeration
  1377. enum **MouseButton**:
  1378. .. _class_@GlobalScope_constant_MOUSE_BUTTON_NONE:
  1379. .. rst-class:: classref-enumeration-constant
  1380. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_NONE** = ``0``
  1381. Enum value which doesn't correspond to any mouse button. This is used to initialize :ref:`MouseButton<enum_@GlobalScope_MouseButton>` properties with a generic state.
  1382. .. _class_@GlobalScope_constant_MOUSE_BUTTON_LEFT:
  1383. .. rst-class:: classref-enumeration-constant
  1384. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_LEFT** = ``1``
  1385. Primary mouse button, usually assigned to the left button.
  1386. .. _class_@GlobalScope_constant_MOUSE_BUTTON_RIGHT:
  1387. .. rst-class:: classref-enumeration-constant
  1388. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_RIGHT** = ``2``
  1389. Secondary mouse button, usually assigned to the right button.
  1390. .. _class_@GlobalScope_constant_MOUSE_BUTTON_MIDDLE:
  1391. .. rst-class:: classref-enumeration-constant
  1392. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_MIDDLE** = ``3``
  1393. Middle mouse button.
  1394. .. _class_@GlobalScope_constant_MOUSE_BUTTON_WHEEL_UP:
  1395. .. rst-class:: classref-enumeration-constant
  1396. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_WHEEL_UP** = ``4``
  1397. Mouse wheel scrolling up.
  1398. .. _class_@GlobalScope_constant_MOUSE_BUTTON_WHEEL_DOWN:
  1399. .. rst-class:: classref-enumeration-constant
  1400. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_WHEEL_DOWN** = ``5``
  1401. Mouse wheel scrolling down.
  1402. .. _class_@GlobalScope_constant_MOUSE_BUTTON_WHEEL_LEFT:
  1403. .. rst-class:: classref-enumeration-constant
  1404. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_WHEEL_LEFT** = ``6``
  1405. Mouse wheel left button (only present on some mice).
  1406. .. _class_@GlobalScope_constant_MOUSE_BUTTON_WHEEL_RIGHT:
  1407. .. rst-class:: classref-enumeration-constant
  1408. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_WHEEL_RIGHT** = ``7``
  1409. Mouse wheel right button (only present on some mice).
  1410. .. _class_@GlobalScope_constant_MOUSE_BUTTON_XBUTTON1:
  1411. .. rst-class:: classref-enumeration-constant
  1412. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_XBUTTON1** = ``8``
  1413. Extra mouse button 1. This is sometimes present, usually to the sides of the mouse.
  1414. .. _class_@GlobalScope_constant_MOUSE_BUTTON_XBUTTON2:
  1415. .. rst-class:: classref-enumeration-constant
  1416. :ref:`MouseButton<enum_@GlobalScope_MouseButton>` **MOUSE_BUTTON_XBUTTON2** = ``9``
  1417. Extra mouse button 2. This is sometimes present, usually to the sides of the mouse.
  1418. .. rst-class:: classref-item-separator
  1419. ----
  1420. .. _enum_@GlobalScope_MouseButtonMask:
  1421. .. rst-class:: classref-enumeration
  1422. flags **MouseButtonMask**:
  1423. .. _class_@GlobalScope_constant_MOUSE_BUTTON_MASK_LEFT:
  1424. .. rst-class:: classref-enumeration-constant
  1425. :ref:`MouseButtonMask<enum_@GlobalScope_MouseButtonMask>` **MOUSE_BUTTON_MASK_LEFT** = ``1``
  1426. Primary mouse button mask, usually for the left button.
  1427. .. _class_@GlobalScope_constant_MOUSE_BUTTON_MASK_RIGHT:
  1428. .. rst-class:: classref-enumeration-constant
  1429. :ref:`MouseButtonMask<enum_@GlobalScope_MouseButtonMask>` **MOUSE_BUTTON_MASK_RIGHT** = ``2``
  1430. Secondary mouse button mask, usually for the right button.
  1431. .. _class_@GlobalScope_constant_MOUSE_BUTTON_MASK_MIDDLE:
  1432. .. rst-class:: classref-enumeration-constant
  1433. :ref:`MouseButtonMask<enum_@GlobalScope_MouseButtonMask>` **MOUSE_BUTTON_MASK_MIDDLE** = ``4``
  1434. Middle mouse button mask.
  1435. .. _class_@GlobalScope_constant_MOUSE_BUTTON_MASK_MB_XBUTTON1:
  1436. .. rst-class:: classref-enumeration-constant
  1437. :ref:`MouseButtonMask<enum_@GlobalScope_MouseButtonMask>` **MOUSE_BUTTON_MASK_MB_XBUTTON1** = ``128``
  1438. Extra mouse button 1 mask.
  1439. .. _class_@GlobalScope_constant_MOUSE_BUTTON_MASK_MB_XBUTTON2:
  1440. .. rst-class:: classref-enumeration-constant
  1441. :ref:`MouseButtonMask<enum_@GlobalScope_MouseButtonMask>` **MOUSE_BUTTON_MASK_MB_XBUTTON2** = ``256``
  1442. Extra mouse button 2 mask.
  1443. .. rst-class:: classref-item-separator
  1444. ----
  1445. .. _enum_@GlobalScope_JoyButton:
  1446. .. rst-class:: classref-enumeration
  1447. enum **JoyButton**:
  1448. .. _class_@GlobalScope_constant_JOY_BUTTON_INVALID:
  1449. .. rst-class:: classref-enumeration-constant
  1450. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_INVALID** = ``-1``
  1451. An invalid game controller button.
  1452. .. _class_@GlobalScope_constant_JOY_BUTTON_A:
  1453. .. rst-class:: classref-enumeration-constant
  1454. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_A** = ``0``
  1455. Game controller SDL button A. Corresponds to the bottom action button: Sony Cross, Xbox A, Nintendo B.
  1456. .. _class_@GlobalScope_constant_JOY_BUTTON_B:
  1457. .. rst-class:: classref-enumeration-constant
  1458. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_B** = ``1``
  1459. Game controller SDL button B. Corresponds to the right action button: Sony Circle, Xbox B, Nintendo A.
  1460. .. _class_@GlobalScope_constant_JOY_BUTTON_X:
  1461. .. rst-class:: classref-enumeration-constant
  1462. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_X** = ``2``
  1463. Game controller SDL button X. Corresponds to the left action button: Sony Square, Xbox X, Nintendo Y.
  1464. .. _class_@GlobalScope_constant_JOY_BUTTON_Y:
  1465. .. rst-class:: classref-enumeration-constant
  1466. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_Y** = ``3``
  1467. Game controller SDL button Y. Corresponds to the top action button: Sony Triangle, Xbox Y, Nintendo X.
  1468. .. _class_@GlobalScope_constant_JOY_BUTTON_BACK:
  1469. .. rst-class:: classref-enumeration-constant
  1470. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_BACK** = ``4``
  1471. Game controller SDL back button. Corresponds to the Sony Select, Xbox Back, Nintendo - button.
  1472. .. _class_@GlobalScope_constant_JOY_BUTTON_GUIDE:
  1473. .. rst-class:: classref-enumeration-constant
  1474. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_GUIDE** = ``5``
  1475. Game controller SDL guide button. Corresponds to the Sony PS, Xbox Home button.
  1476. .. _class_@GlobalScope_constant_JOY_BUTTON_START:
  1477. .. rst-class:: classref-enumeration-constant
  1478. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_START** = ``6``
  1479. Game controller SDL start button. Corresponds to the Sony Options, Xbox Menu, Nintendo + button.
  1480. .. _class_@GlobalScope_constant_JOY_BUTTON_LEFT_STICK:
  1481. .. rst-class:: classref-enumeration-constant
  1482. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_LEFT_STICK** = ``7``
  1483. Game controller SDL left stick button. Corresponds to the Sony L3, Xbox L/LS button.
  1484. .. _class_@GlobalScope_constant_JOY_BUTTON_RIGHT_STICK:
  1485. .. rst-class:: classref-enumeration-constant
  1486. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_RIGHT_STICK** = ``8``
  1487. Game controller SDL right stick button. Corresponds to the Sony R3, Xbox R/RS button.
  1488. .. _class_@GlobalScope_constant_JOY_BUTTON_LEFT_SHOULDER:
  1489. .. rst-class:: classref-enumeration-constant
  1490. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_LEFT_SHOULDER** = ``9``
  1491. Game controller SDL left shoulder button. Corresponds to the Sony L1, Xbox LB button.
  1492. .. _class_@GlobalScope_constant_JOY_BUTTON_RIGHT_SHOULDER:
  1493. .. rst-class:: classref-enumeration-constant
  1494. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_RIGHT_SHOULDER** = ``10``
  1495. Game controller SDL right shoulder button. Corresponds to the Sony R1, Xbox RB button.
  1496. .. _class_@GlobalScope_constant_JOY_BUTTON_DPAD_UP:
  1497. .. rst-class:: classref-enumeration-constant
  1498. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_DPAD_UP** = ``11``
  1499. Game controller D-pad up button.
  1500. .. _class_@GlobalScope_constant_JOY_BUTTON_DPAD_DOWN:
  1501. .. rst-class:: classref-enumeration-constant
  1502. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_DPAD_DOWN** = ``12``
  1503. Game controller D-pad down button.
  1504. .. _class_@GlobalScope_constant_JOY_BUTTON_DPAD_LEFT:
  1505. .. rst-class:: classref-enumeration-constant
  1506. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_DPAD_LEFT** = ``13``
  1507. Game controller D-pad left button.
  1508. .. _class_@GlobalScope_constant_JOY_BUTTON_DPAD_RIGHT:
  1509. .. rst-class:: classref-enumeration-constant
  1510. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_DPAD_RIGHT** = ``14``
  1511. Game controller D-pad right button.
  1512. .. _class_@GlobalScope_constant_JOY_BUTTON_MISC1:
  1513. .. rst-class:: classref-enumeration-constant
  1514. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_MISC1** = ``15``
  1515. Game controller SDL miscellaneous button. Corresponds to Xbox share button, PS5 microphone button, Nintendo Switch capture button.
  1516. .. _class_@GlobalScope_constant_JOY_BUTTON_PADDLE1:
  1517. .. rst-class:: classref-enumeration-constant
  1518. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_PADDLE1** = ``16``
  1519. Game controller SDL paddle 1 button.
  1520. .. _class_@GlobalScope_constant_JOY_BUTTON_PADDLE2:
  1521. .. rst-class:: classref-enumeration-constant
  1522. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_PADDLE2** = ``17``
  1523. Game controller SDL paddle 2 button.
  1524. .. _class_@GlobalScope_constant_JOY_BUTTON_PADDLE3:
  1525. .. rst-class:: classref-enumeration-constant
  1526. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_PADDLE3** = ``18``
  1527. Game controller SDL paddle 3 button.
  1528. .. _class_@GlobalScope_constant_JOY_BUTTON_PADDLE4:
  1529. .. rst-class:: classref-enumeration-constant
  1530. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_PADDLE4** = ``19``
  1531. Game controller SDL paddle 4 button.
  1532. .. _class_@GlobalScope_constant_JOY_BUTTON_TOUCHPAD:
  1533. .. rst-class:: classref-enumeration-constant
  1534. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_TOUCHPAD** = ``20``
  1535. Game controller SDL touchpad button.
  1536. .. _class_@GlobalScope_constant_JOY_BUTTON_SDL_MAX:
  1537. .. rst-class:: classref-enumeration-constant
  1538. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_SDL_MAX** = ``21``
  1539. The number of SDL game controller buttons.
  1540. .. _class_@GlobalScope_constant_JOY_BUTTON_MAX:
  1541. .. rst-class:: classref-enumeration-constant
  1542. :ref:`JoyButton<enum_@GlobalScope_JoyButton>` **JOY_BUTTON_MAX** = ``128``
  1543. The maximum number of game controller buttons supported by the engine. The actual limit may be lower on specific platforms:
  1544. - **Android:** Up to 36 buttons.
  1545. - **Linux:** Up to 80 buttons.
  1546. - **Windows** and **macOS:** Up to 128 buttons.
  1547. .. rst-class:: classref-item-separator
  1548. ----
  1549. .. _enum_@GlobalScope_JoyAxis:
  1550. .. rst-class:: classref-enumeration
  1551. enum **JoyAxis**:
  1552. .. _class_@GlobalScope_constant_JOY_AXIS_INVALID:
  1553. .. rst-class:: classref-enumeration-constant
  1554. :ref:`JoyAxis<enum_@GlobalScope_JoyAxis>` **JOY_AXIS_INVALID** = ``-1``
  1555. An invalid game controller axis.
  1556. .. _class_@GlobalScope_constant_JOY_AXIS_LEFT_X:
  1557. .. rst-class:: classref-enumeration-constant
  1558. :ref:`JoyAxis<enum_@GlobalScope_JoyAxis>` **JOY_AXIS_LEFT_X** = ``0``
  1559. Game controller left joystick x-axis.
  1560. .. _class_@GlobalScope_constant_JOY_AXIS_LEFT_Y:
  1561. .. rst-class:: classref-enumeration-constant
  1562. :ref:`JoyAxis<enum_@GlobalScope_JoyAxis>` **JOY_AXIS_LEFT_Y** = ``1``
  1563. Game controller left joystick y-axis.
  1564. .. _class_@GlobalScope_constant_JOY_AXIS_RIGHT_X:
  1565. .. rst-class:: classref-enumeration-constant
  1566. :ref:`JoyAxis<enum_@GlobalScope_JoyAxis>` **JOY_AXIS_RIGHT_X** = ``2``
  1567. Game controller right joystick x-axis.
  1568. .. _class_@GlobalScope_constant_JOY_AXIS_RIGHT_Y:
  1569. .. rst-class:: classref-enumeration-constant
  1570. :ref:`JoyAxis<enum_@GlobalScope_JoyAxis>` **JOY_AXIS_RIGHT_Y** = ``3``
  1571. Game controller right joystick y-axis.
  1572. .. _class_@GlobalScope_constant_JOY_AXIS_TRIGGER_LEFT:
  1573. .. rst-class:: classref-enumeration-constant
  1574. :ref:`JoyAxis<enum_@GlobalScope_JoyAxis>` **JOY_AXIS_TRIGGER_LEFT** = ``4``
  1575. Game controller left trigger axis.
  1576. .. _class_@GlobalScope_constant_JOY_AXIS_TRIGGER_RIGHT:
  1577. .. rst-class:: classref-enumeration-constant
  1578. :ref:`JoyAxis<enum_@GlobalScope_JoyAxis>` **JOY_AXIS_TRIGGER_RIGHT** = ``5``
  1579. Game controller right trigger axis.
  1580. .. _class_@GlobalScope_constant_JOY_AXIS_SDL_MAX:
  1581. .. rst-class:: classref-enumeration-constant
  1582. :ref:`JoyAxis<enum_@GlobalScope_JoyAxis>` **JOY_AXIS_SDL_MAX** = ``6``
  1583. The number of SDL game controller axes.
  1584. .. _class_@GlobalScope_constant_JOY_AXIS_MAX:
  1585. .. rst-class:: classref-enumeration-constant
  1586. :ref:`JoyAxis<enum_@GlobalScope_JoyAxis>` **JOY_AXIS_MAX** = ``10``
  1587. The maximum number of game controller axes: OpenVR supports up to 5 Joysticks making a total of 10 axes.
  1588. .. rst-class:: classref-item-separator
  1589. ----
  1590. .. _enum_@GlobalScope_MIDIMessage:
  1591. .. rst-class:: classref-enumeration
  1592. enum **MIDIMessage**:
  1593. .. _class_@GlobalScope_constant_MIDI_MESSAGE_NONE:
  1594. .. rst-class:: classref-enumeration-constant
  1595. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_NONE** = ``0``
  1596. Does not correspond to any MIDI message. This is the default value of :ref:`InputEventMIDI.message<class_InputEventMIDI_property_message>`.
  1597. .. _class_@GlobalScope_constant_MIDI_MESSAGE_NOTE_OFF:
  1598. .. rst-class:: classref-enumeration-constant
  1599. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_NOTE_OFF** = ``8``
  1600. MIDI message sent when a note is released.
  1601. \ **Note:** Not all MIDI devices send this message; some may send :ref:`MIDI_MESSAGE_NOTE_ON<class_@GlobalScope_constant_MIDI_MESSAGE_NOTE_ON>` with :ref:`InputEventMIDI.velocity<class_InputEventMIDI_property_velocity>` set to ``0``.
  1602. .. _class_@GlobalScope_constant_MIDI_MESSAGE_NOTE_ON:
  1603. .. rst-class:: classref-enumeration-constant
  1604. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_NOTE_ON** = ``9``
  1605. MIDI message sent when a note is pressed.
  1606. .. _class_@GlobalScope_constant_MIDI_MESSAGE_AFTERTOUCH:
  1607. .. rst-class:: classref-enumeration-constant
  1608. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_AFTERTOUCH** = ``10``
  1609. MIDI message sent to indicate a change in pressure while a note is being pressed down, also called aftertouch.
  1610. .. _class_@GlobalScope_constant_MIDI_MESSAGE_CONTROL_CHANGE:
  1611. .. rst-class:: classref-enumeration-constant
  1612. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_CONTROL_CHANGE** = ``11``
  1613. MIDI message sent when a controller value changes. In a MIDI device, a controller is any input that doesn't play notes. These may include sliders for volume, balance, and panning, as well as switches and pedals. See the `General MIDI specification <https://en.wikipedia.org/wiki/General_MIDI#Controller_events>`__ for a small list.
  1614. .. _class_@GlobalScope_constant_MIDI_MESSAGE_PROGRAM_CHANGE:
  1615. .. rst-class:: classref-enumeration-constant
  1616. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_PROGRAM_CHANGE** = ``12``
  1617. MIDI message sent when the MIDI device changes its current instrument (also called *program* or *preset*).
  1618. .. _class_@GlobalScope_constant_MIDI_MESSAGE_CHANNEL_PRESSURE:
  1619. .. rst-class:: classref-enumeration-constant
  1620. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_CHANNEL_PRESSURE** = ``13``
  1621. MIDI message sent to indicate a change in pressure for the whole channel. Some MIDI devices may send this instead of :ref:`MIDI_MESSAGE_AFTERTOUCH<class_@GlobalScope_constant_MIDI_MESSAGE_AFTERTOUCH>`.
  1622. .. _class_@GlobalScope_constant_MIDI_MESSAGE_PITCH_BEND:
  1623. .. rst-class:: classref-enumeration-constant
  1624. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_PITCH_BEND** = ``14``
  1625. MIDI message sent when the value of the pitch bender changes, usually a wheel on the MIDI device.
  1626. .. _class_@GlobalScope_constant_MIDI_MESSAGE_SYSTEM_EXCLUSIVE:
  1627. .. rst-class:: classref-enumeration-constant
  1628. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_SYSTEM_EXCLUSIVE** = ``240``
  1629. MIDI system exclusive (SysEx) message. This type of message is not standardized and it's highly dependent on the MIDI device sending it.
  1630. \ **Note:** Getting this message's data from :ref:`InputEventMIDI<class_InputEventMIDI>` is not implemented.
  1631. .. _class_@GlobalScope_constant_MIDI_MESSAGE_QUARTER_FRAME:
  1632. .. rst-class:: classref-enumeration-constant
  1633. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_QUARTER_FRAME** = ``241``
  1634. MIDI message sent every quarter frame to keep connected MIDI devices synchronized. Related to :ref:`MIDI_MESSAGE_TIMING_CLOCK<class_@GlobalScope_constant_MIDI_MESSAGE_TIMING_CLOCK>`.
  1635. \ **Note:** Getting this message's data from :ref:`InputEventMIDI<class_InputEventMIDI>` is not implemented.
  1636. .. _class_@GlobalScope_constant_MIDI_MESSAGE_SONG_POSITION_POINTER:
  1637. .. rst-class:: classref-enumeration-constant
  1638. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_SONG_POSITION_POINTER** = ``242``
  1639. MIDI message sent to jump onto a new position in the current sequence or song.
  1640. \ **Note:** Getting this message's data from :ref:`InputEventMIDI<class_InputEventMIDI>` is not implemented.
  1641. .. _class_@GlobalScope_constant_MIDI_MESSAGE_SONG_SELECT:
  1642. .. rst-class:: classref-enumeration-constant
  1643. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_SONG_SELECT** = ``243``
  1644. MIDI message sent to select a sequence or song to play.
  1645. \ **Note:** Getting this message's data from :ref:`InputEventMIDI<class_InputEventMIDI>` is not implemented.
  1646. .. _class_@GlobalScope_constant_MIDI_MESSAGE_TUNE_REQUEST:
  1647. .. rst-class:: classref-enumeration-constant
  1648. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_TUNE_REQUEST** = ``246``
  1649. MIDI message sent to request a tuning calibration. Used on analog synthesizers. Most modern MIDI devices do not need this message.
  1650. .. _class_@GlobalScope_constant_MIDI_MESSAGE_TIMING_CLOCK:
  1651. .. rst-class:: classref-enumeration-constant
  1652. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_TIMING_CLOCK** = ``248``
  1653. MIDI message sent 24 times after :ref:`MIDI_MESSAGE_QUARTER_FRAME<class_@GlobalScope_constant_MIDI_MESSAGE_QUARTER_FRAME>`, to keep connected MIDI devices synchronized.
  1654. .. _class_@GlobalScope_constant_MIDI_MESSAGE_START:
  1655. .. rst-class:: classref-enumeration-constant
  1656. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_START** = ``250``
  1657. MIDI message sent to start the current sequence or song from the beginning.
  1658. .. _class_@GlobalScope_constant_MIDI_MESSAGE_CONTINUE:
  1659. .. rst-class:: classref-enumeration-constant
  1660. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_CONTINUE** = ``251``
  1661. MIDI message sent to resume from the point the current sequence or song was paused.
  1662. .. _class_@GlobalScope_constant_MIDI_MESSAGE_STOP:
  1663. .. rst-class:: classref-enumeration-constant
  1664. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_STOP** = ``252``
  1665. MIDI message sent to pause the current sequence or song.
  1666. .. _class_@GlobalScope_constant_MIDI_MESSAGE_ACTIVE_SENSING:
  1667. .. rst-class:: classref-enumeration-constant
  1668. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_ACTIVE_SENSING** = ``254``
  1669. MIDI message sent repeatedly while the MIDI device is idle, to tell the receiver that the connection is alive. Most MIDI devices do not send this message.
  1670. .. _class_@GlobalScope_constant_MIDI_MESSAGE_SYSTEM_RESET:
  1671. .. rst-class:: classref-enumeration-constant
  1672. :ref:`MIDIMessage<enum_@GlobalScope_MIDIMessage>` **MIDI_MESSAGE_SYSTEM_RESET** = ``255``
  1673. MIDI message sent to reset a MIDI device to its default state, as if it was just turned on. It should not be sent when the MIDI device is being turned on.
  1674. .. rst-class:: classref-item-separator
  1675. ----
  1676. .. _enum_@GlobalScope_Error:
  1677. .. rst-class:: classref-enumeration
  1678. enum **Error**:
  1679. .. _class_@GlobalScope_constant_OK:
  1680. .. rst-class:: classref-enumeration-constant
  1681. :ref:`Error<enum_@GlobalScope_Error>` **OK** = ``0``
  1682. Methods that return :ref:`Error<enum_@GlobalScope_Error>` return :ref:`OK<class_@GlobalScope_constant_OK>` when no error occurred.
  1683. Since :ref:`OK<class_@GlobalScope_constant_OK>` has value 0, and all other error constants are positive integers, it can also be used in boolean checks.
  1684. \ **Example:**\
  1685. ::
  1686. var error = method_that_returns_error()
  1687. if error != OK:
  1688. printerr("Failure!")
  1689. # Or, alternatively:
  1690. if error:
  1691. printerr("Still failing!")
  1692. \ **Note:** Many functions do not return an error code, but will print error messages to standard output.
  1693. .. _class_@GlobalScope_constant_FAILED:
  1694. .. rst-class:: classref-enumeration-constant
  1695. :ref:`Error<enum_@GlobalScope_Error>` **FAILED** = ``1``
  1696. Generic error.
  1697. .. _class_@GlobalScope_constant_ERR_UNAVAILABLE:
  1698. .. rst-class:: classref-enumeration-constant
  1699. :ref:`Error<enum_@GlobalScope_Error>` **ERR_UNAVAILABLE** = ``2``
  1700. Unavailable error.
  1701. .. _class_@GlobalScope_constant_ERR_UNCONFIGURED:
  1702. .. rst-class:: classref-enumeration-constant
  1703. :ref:`Error<enum_@GlobalScope_Error>` **ERR_UNCONFIGURED** = ``3``
  1704. Unconfigured error.
  1705. .. _class_@GlobalScope_constant_ERR_UNAUTHORIZED:
  1706. .. rst-class:: classref-enumeration-constant
  1707. :ref:`Error<enum_@GlobalScope_Error>` **ERR_UNAUTHORIZED** = ``4``
  1708. Unauthorized error.
  1709. .. _class_@GlobalScope_constant_ERR_PARAMETER_RANGE_ERROR:
  1710. .. rst-class:: classref-enumeration-constant
  1711. :ref:`Error<enum_@GlobalScope_Error>` **ERR_PARAMETER_RANGE_ERROR** = ``5``
  1712. Parameter range error.
  1713. .. _class_@GlobalScope_constant_ERR_OUT_OF_MEMORY:
  1714. .. rst-class:: classref-enumeration-constant
  1715. :ref:`Error<enum_@GlobalScope_Error>` **ERR_OUT_OF_MEMORY** = ``6``
  1716. Out of memory (OOM) error.
  1717. .. _class_@GlobalScope_constant_ERR_FILE_NOT_FOUND:
  1718. .. rst-class:: classref-enumeration-constant
  1719. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_NOT_FOUND** = ``7``
  1720. File: Not found error.
  1721. .. _class_@GlobalScope_constant_ERR_FILE_BAD_DRIVE:
  1722. .. rst-class:: classref-enumeration-constant
  1723. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_BAD_DRIVE** = ``8``
  1724. File: Bad drive error.
  1725. .. _class_@GlobalScope_constant_ERR_FILE_BAD_PATH:
  1726. .. rst-class:: classref-enumeration-constant
  1727. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_BAD_PATH** = ``9``
  1728. File: Bad path error.
  1729. .. _class_@GlobalScope_constant_ERR_FILE_NO_PERMISSION:
  1730. .. rst-class:: classref-enumeration-constant
  1731. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_NO_PERMISSION** = ``10``
  1732. File: No permission error.
  1733. .. _class_@GlobalScope_constant_ERR_FILE_ALREADY_IN_USE:
  1734. .. rst-class:: classref-enumeration-constant
  1735. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_ALREADY_IN_USE** = ``11``
  1736. File: Already in use error.
  1737. .. _class_@GlobalScope_constant_ERR_FILE_CANT_OPEN:
  1738. .. rst-class:: classref-enumeration-constant
  1739. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_CANT_OPEN** = ``12``
  1740. File: Can't open error.
  1741. .. _class_@GlobalScope_constant_ERR_FILE_CANT_WRITE:
  1742. .. rst-class:: classref-enumeration-constant
  1743. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_CANT_WRITE** = ``13``
  1744. File: Can't write error.
  1745. .. _class_@GlobalScope_constant_ERR_FILE_CANT_READ:
  1746. .. rst-class:: classref-enumeration-constant
  1747. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_CANT_READ** = ``14``
  1748. File: Can't read error.
  1749. .. _class_@GlobalScope_constant_ERR_FILE_UNRECOGNIZED:
  1750. .. rst-class:: classref-enumeration-constant
  1751. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_UNRECOGNIZED** = ``15``
  1752. File: Unrecognized error.
  1753. .. _class_@GlobalScope_constant_ERR_FILE_CORRUPT:
  1754. .. rst-class:: classref-enumeration-constant
  1755. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_CORRUPT** = ``16``
  1756. File: Corrupt error.
  1757. .. _class_@GlobalScope_constant_ERR_FILE_MISSING_DEPENDENCIES:
  1758. .. rst-class:: classref-enumeration-constant
  1759. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_MISSING_DEPENDENCIES** = ``17``
  1760. File: Missing dependencies error.
  1761. .. _class_@GlobalScope_constant_ERR_FILE_EOF:
  1762. .. rst-class:: classref-enumeration-constant
  1763. :ref:`Error<enum_@GlobalScope_Error>` **ERR_FILE_EOF** = ``18``
  1764. File: End of file (EOF) error.
  1765. .. _class_@GlobalScope_constant_ERR_CANT_OPEN:
  1766. .. rst-class:: classref-enumeration-constant
  1767. :ref:`Error<enum_@GlobalScope_Error>` **ERR_CANT_OPEN** = ``19``
  1768. Can't open error.
  1769. .. _class_@GlobalScope_constant_ERR_CANT_CREATE:
  1770. .. rst-class:: classref-enumeration-constant
  1771. :ref:`Error<enum_@GlobalScope_Error>` **ERR_CANT_CREATE** = ``20``
  1772. Can't create error.
  1773. .. _class_@GlobalScope_constant_ERR_QUERY_FAILED:
  1774. .. rst-class:: classref-enumeration-constant
  1775. :ref:`Error<enum_@GlobalScope_Error>` **ERR_QUERY_FAILED** = ``21``
  1776. Query failed error.
  1777. .. _class_@GlobalScope_constant_ERR_ALREADY_IN_USE:
  1778. .. rst-class:: classref-enumeration-constant
  1779. :ref:`Error<enum_@GlobalScope_Error>` **ERR_ALREADY_IN_USE** = ``22``
  1780. Already in use error.
  1781. .. _class_@GlobalScope_constant_ERR_LOCKED:
  1782. .. rst-class:: classref-enumeration-constant
  1783. :ref:`Error<enum_@GlobalScope_Error>` **ERR_LOCKED** = ``23``
  1784. Locked error.
  1785. .. _class_@GlobalScope_constant_ERR_TIMEOUT:
  1786. .. rst-class:: classref-enumeration-constant
  1787. :ref:`Error<enum_@GlobalScope_Error>` **ERR_TIMEOUT** = ``24``
  1788. Timeout error.
  1789. .. _class_@GlobalScope_constant_ERR_CANT_CONNECT:
  1790. .. rst-class:: classref-enumeration-constant
  1791. :ref:`Error<enum_@GlobalScope_Error>` **ERR_CANT_CONNECT** = ``25``
  1792. Can't connect error.
  1793. .. _class_@GlobalScope_constant_ERR_CANT_RESOLVE:
  1794. .. rst-class:: classref-enumeration-constant
  1795. :ref:`Error<enum_@GlobalScope_Error>` **ERR_CANT_RESOLVE** = ``26``
  1796. Can't resolve error.
  1797. .. _class_@GlobalScope_constant_ERR_CONNECTION_ERROR:
  1798. .. rst-class:: classref-enumeration-constant
  1799. :ref:`Error<enum_@GlobalScope_Error>` **ERR_CONNECTION_ERROR** = ``27``
  1800. Connection error.
  1801. .. _class_@GlobalScope_constant_ERR_CANT_ACQUIRE_RESOURCE:
  1802. .. rst-class:: classref-enumeration-constant
  1803. :ref:`Error<enum_@GlobalScope_Error>` **ERR_CANT_ACQUIRE_RESOURCE** = ``28``
  1804. Can't acquire resource error.
  1805. .. _class_@GlobalScope_constant_ERR_CANT_FORK:
  1806. .. rst-class:: classref-enumeration-constant
  1807. :ref:`Error<enum_@GlobalScope_Error>` **ERR_CANT_FORK** = ``29``
  1808. Can't fork process error.
  1809. .. _class_@GlobalScope_constant_ERR_INVALID_DATA:
  1810. .. rst-class:: classref-enumeration-constant
  1811. :ref:`Error<enum_@GlobalScope_Error>` **ERR_INVALID_DATA** = ``30``
  1812. Invalid data error.
  1813. .. _class_@GlobalScope_constant_ERR_INVALID_PARAMETER:
  1814. .. rst-class:: classref-enumeration-constant
  1815. :ref:`Error<enum_@GlobalScope_Error>` **ERR_INVALID_PARAMETER** = ``31``
  1816. Invalid parameter error.
  1817. .. _class_@GlobalScope_constant_ERR_ALREADY_EXISTS:
  1818. .. rst-class:: classref-enumeration-constant
  1819. :ref:`Error<enum_@GlobalScope_Error>` **ERR_ALREADY_EXISTS** = ``32``
  1820. Already exists error.
  1821. .. _class_@GlobalScope_constant_ERR_DOES_NOT_EXIST:
  1822. .. rst-class:: classref-enumeration-constant
  1823. :ref:`Error<enum_@GlobalScope_Error>` **ERR_DOES_NOT_EXIST** = ``33``
  1824. Does not exist error.
  1825. .. _class_@GlobalScope_constant_ERR_DATABASE_CANT_READ:
  1826. .. rst-class:: classref-enumeration-constant
  1827. :ref:`Error<enum_@GlobalScope_Error>` **ERR_DATABASE_CANT_READ** = ``34``
  1828. Database: Read error.
  1829. .. _class_@GlobalScope_constant_ERR_DATABASE_CANT_WRITE:
  1830. .. rst-class:: classref-enumeration-constant
  1831. :ref:`Error<enum_@GlobalScope_Error>` **ERR_DATABASE_CANT_WRITE** = ``35``
  1832. Database: Write error.
  1833. .. _class_@GlobalScope_constant_ERR_COMPILATION_FAILED:
  1834. .. rst-class:: classref-enumeration-constant
  1835. :ref:`Error<enum_@GlobalScope_Error>` **ERR_COMPILATION_FAILED** = ``36``
  1836. Compilation failed error.
  1837. .. _class_@GlobalScope_constant_ERR_METHOD_NOT_FOUND:
  1838. .. rst-class:: classref-enumeration-constant
  1839. :ref:`Error<enum_@GlobalScope_Error>` **ERR_METHOD_NOT_FOUND** = ``37``
  1840. Method not found error.
  1841. .. _class_@GlobalScope_constant_ERR_LINK_FAILED:
  1842. .. rst-class:: classref-enumeration-constant
  1843. :ref:`Error<enum_@GlobalScope_Error>` **ERR_LINK_FAILED** = ``38``
  1844. Linking failed error.
  1845. .. _class_@GlobalScope_constant_ERR_SCRIPT_FAILED:
  1846. .. rst-class:: classref-enumeration-constant
  1847. :ref:`Error<enum_@GlobalScope_Error>` **ERR_SCRIPT_FAILED** = ``39``
  1848. Script failed error.
  1849. .. _class_@GlobalScope_constant_ERR_CYCLIC_LINK:
  1850. .. rst-class:: classref-enumeration-constant
  1851. :ref:`Error<enum_@GlobalScope_Error>` **ERR_CYCLIC_LINK** = ``40``
  1852. Cycling link (import cycle) error.
  1853. .. _class_@GlobalScope_constant_ERR_INVALID_DECLARATION:
  1854. .. rst-class:: classref-enumeration-constant
  1855. :ref:`Error<enum_@GlobalScope_Error>` **ERR_INVALID_DECLARATION** = ``41``
  1856. Invalid declaration error.
  1857. .. _class_@GlobalScope_constant_ERR_DUPLICATE_SYMBOL:
  1858. .. rst-class:: classref-enumeration-constant
  1859. :ref:`Error<enum_@GlobalScope_Error>` **ERR_DUPLICATE_SYMBOL** = ``42``
  1860. Duplicate symbol error.
  1861. .. _class_@GlobalScope_constant_ERR_PARSE_ERROR:
  1862. .. rst-class:: classref-enumeration-constant
  1863. :ref:`Error<enum_@GlobalScope_Error>` **ERR_PARSE_ERROR** = ``43``
  1864. Parse error.
  1865. .. _class_@GlobalScope_constant_ERR_BUSY:
  1866. .. rst-class:: classref-enumeration-constant
  1867. :ref:`Error<enum_@GlobalScope_Error>` **ERR_BUSY** = ``44``
  1868. Busy error.
  1869. .. _class_@GlobalScope_constant_ERR_SKIP:
  1870. .. rst-class:: classref-enumeration-constant
  1871. :ref:`Error<enum_@GlobalScope_Error>` **ERR_SKIP** = ``45``
  1872. Skip error.
  1873. .. _class_@GlobalScope_constant_ERR_HELP:
  1874. .. rst-class:: classref-enumeration-constant
  1875. :ref:`Error<enum_@GlobalScope_Error>` **ERR_HELP** = ``46``
  1876. Help error. Used internally when passing ``--version`` or ``--help`` as executable options.
  1877. .. _class_@GlobalScope_constant_ERR_BUG:
  1878. .. rst-class:: classref-enumeration-constant
  1879. :ref:`Error<enum_@GlobalScope_Error>` **ERR_BUG** = ``47``
  1880. Bug error, caused by an implementation issue in the method.
  1881. \ **Note:** If a built-in method returns this code, please open an issue on `the GitHub Issue Tracker <https://github.com/godotengine/godot/issues>`__.
  1882. .. _class_@GlobalScope_constant_ERR_PRINTER_ON_FIRE:
  1883. .. rst-class:: classref-enumeration-constant
  1884. :ref:`Error<enum_@GlobalScope_Error>` **ERR_PRINTER_ON_FIRE** = ``48``
  1885. Printer on fire error (This is an easter egg, no built-in methods return this error code).
  1886. .. rst-class:: classref-item-separator
  1887. ----
  1888. .. _enum_@GlobalScope_PropertyHint:
  1889. .. rst-class:: classref-enumeration
  1890. enum **PropertyHint**:
  1891. .. _class_@GlobalScope_constant_PROPERTY_HINT_NONE:
  1892. .. rst-class:: classref-enumeration-constant
  1893. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_NONE** = ``0``
  1894. The property has no hint for the editor.
  1895. .. _class_@GlobalScope_constant_PROPERTY_HINT_RANGE:
  1896. .. rst-class:: classref-enumeration-constant
  1897. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_RANGE** = ``1``
  1898. Hints that an :ref:`int<class_int>` or :ref:`float<class_float>` property should be within a range specified via the hint string ``"min,max"`` or ``"min,max,step"``. The hint string can optionally include ``"or_greater"`` and/or ``"or_less"`` to allow manual input going respectively above the max or below the min values.
  1899. \ **Example:** ``"-360,360,1,or_greater,or_less"``.
  1900. Additionally, other keywords can be included: ``"exp"`` for exponential range editing, ``"radians_as_degrees"`` for editing radian angles in degrees (the range values are also in degrees), ``"degrees"`` to hint at an angle and ``"hide_slider"`` to hide the slider.
  1901. .. _class_@GlobalScope_constant_PROPERTY_HINT_ENUM:
  1902. .. rst-class:: classref-enumeration-constant
  1903. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_ENUM** = ``2``
  1904. Hints that an :ref:`int<class_int>` or :ref:`String<class_String>` property is an enumerated value to pick in a list specified via a hint string.
  1905. The hint string is a comma separated list of names such as ``"Hello,Something,Else"``. Whitespaces are **not** removed from either end of a name. For integer properties, the first name in the list has value 0, the next 1, and so on. Explicit values can also be specified by appending ``:integer`` to the name, e.g. ``"Zero,One,Three:3,Four,Six:6"``.
  1906. .. _class_@GlobalScope_constant_PROPERTY_HINT_ENUM_SUGGESTION:
  1907. .. rst-class:: classref-enumeration-constant
  1908. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_ENUM_SUGGESTION** = ``3``
  1909. Hints that a :ref:`String<class_String>` property can be an enumerated value to pick in a list specified via a hint string such as ``"Hello,Something,Else"``.
  1910. Unlike :ref:`PROPERTY_HINT_ENUM<class_@GlobalScope_constant_PROPERTY_HINT_ENUM>`, a property with this hint still accepts arbitrary values and can be empty. The list of values serves to suggest possible values.
  1911. .. _class_@GlobalScope_constant_PROPERTY_HINT_EXP_EASING:
  1912. .. rst-class:: classref-enumeration-constant
  1913. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_EXP_EASING** = ``4``
  1914. Hints that a :ref:`float<class_float>` property should be edited via an exponential easing function. The hint string can include ``"attenuation"`` to flip the curve horizontally and/or ``"positive_only"`` to exclude in/out easing and limit values to be greater than or equal to zero.
  1915. .. _class_@GlobalScope_constant_PROPERTY_HINT_LINK:
  1916. .. rst-class:: classref-enumeration-constant
  1917. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LINK** = ``5``
  1918. Hints that a vector property should allow its components to be linked. For example, this allows :ref:`Vector2.x<class_Vector2_property_x>` and :ref:`Vector2.y<class_Vector2_property_y>` to be edited together.
  1919. .. _class_@GlobalScope_constant_PROPERTY_HINT_FLAGS:
  1920. .. rst-class:: classref-enumeration-constant
  1921. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_FLAGS** = ``6``
  1922. Hints that an :ref:`int<class_int>` property is a bitmask with named bit flags.
  1923. The hint string is a comma separated list of names such as ``"Bit0,Bit1,Bit2,Bit3"``. Whitespaces are **not** removed from either end of a name. The first name in the list has value 1, the next 2, then 4, 8, 16 and so on. Explicit values can also be specified by appending ``:integer`` to the name, e.g. ``"A:4,B:8,C:16"``. You can also combine several flags (``"A:4,B:8,AB:12,C:16"``).
  1924. \ **Note:** A flag value must be at least ``1`` and at most ``2 ** 32 - 1``.
  1925. \ **Note:** Unlike :ref:`PROPERTY_HINT_ENUM<class_@GlobalScope_constant_PROPERTY_HINT_ENUM>`, the previous explicit value is not taken into account. For the hint ``"A:16,B,C"``, A is 16, B is 2, C is 4.
  1926. .. _class_@GlobalScope_constant_PROPERTY_HINT_LAYERS_2D_RENDER:
  1927. .. rst-class:: classref-enumeration-constant
  1928. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LAYERS_2D_RENDER** = ``7``
  1929. Hints that an :ref:`int<class_int>` property is a bitmask using the optionally named 2D render layers.
  1930. .. _class_@GlobalScope_constant_PROPERTY_HINT_LAYERS_2D_PHYSICS:
  1931. .. rst-class:: classref-enumeration-constant
  1932. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LAYERS_2D_PHYSICS** = ``8``
  1933. Hints that an :ref:`int<class_int>` property is a bitmask using the optionally named 2D physics layers.
  1934. .. _class_@GlobalScope_constant_PROPERTY_HINT_LAYERS_2D_NAVIGATION:
  1935. .. rst-class:: classref-enumeration-constant
  1936. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LAYERS_2D_NAVIGATION** = ``9``
  1937. Hints that an :ref:`int<class_int>` property is a bitmask using the optionally named 2D navigation layers.
  1938. .. _class_@GlobalScope_constant_PROPERTY_HINT_LAYERS_3D_RENDER:
  1939. .. rst-class:: classref-enumeration-constant
  1940. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LAYERS_3D_RENDER** = ``10``
  1941. Hints that an :ref:`int<class_int>` property is a bitmask using the optionally named 3D render layers.
  1942. .. _class_@GlobalScope_constant_PROPERTY_HINT_LAYERS_3D_PHYSICS:
  1943. .. rst-class:: classref-enumeration-constant
  1944. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LAYERS_3D_PHYSICS** = ``11``
  1945. Hints that an :ref:`int<class_int>` property is a bitmask using the optionally named 3D physics layers.
  1946. .. _class_@GlobalScope_constant_PROPERTY_HINT_LAYERS_3D_NAVIGATION:
  1947. .. rst-class:: classref-enumeration-constant
  1948. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LAYERS_3D_NAVIGATION** = ``12``
  1949. Hints that an :ref:`int<class_int>` property is a bitmask using the optionally named 3D navigation layers.
  1950. .. _class_@GlobalScope_constant_PROPERTY_HINT_LAYERS_AVOIDANCE:
  1951. .. rst-class:: classref-enumeration-constant
  1952. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LAYERS_AVOIDANCE** = ``37``
  1953. Hints that an integer property is a bitmask using the optionally named avoidance layers.
  1954. .. _class_@GlobalScope_constant_PROPERTY_HINT_FILE:
  1955. .. rst-class:: classref-enumeration-constant
  1956. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_FILE** = ``13``
  1957. Hints that a :ref:`String<class_String>` property is a path to a file. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards like ``"*.png,*.jpg"``.
  1958. .. _class_@GlobalScope_constant_PROPERTY_HINT_DIR:
  1959. .. rst-class:: classref-enumeration-constant
  1960. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_DIR** = ``14``
  1961. Hints that a :ref:`String<class_String>` property is a path to a directory. Editing it will show a file dialog for picking the path.
  1962. .. _class_@GlobalScope_constant_PROPERTY_HINT_GLOBAL_FILE:
  1963. .. rst-class:: classref-enumeration-constant
  1964. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_GLOBAL_FILE** = ``15``
  1965. Hints that a :ref:`String<class_String>` property is an absolute path to a file outside the project folder. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards, like ``"*.png,*.jpg"``.
  1966. .. _class_@GlobalScope_constant_PROPERTY_HINT_GLOBAL_DIR:
  1967. .. rst-class:: classref-enumeration-constant
  1968. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_GLOBAL_DIR** = ``16``
  1969. Hints that a :ref:`String<class_String>` property is an absolute path to a directory outside the project folder. Editing it will show a file dialog for picking the path.
  1970. .. _class_@GlobalScope_constant_PROPERTY_HINT_RESOURCE_TYPE:
  1971. .. rst-class:: classref-enumeration-constant
  1972. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_RESOURCE_TYPE** = ``17``
  1973. Hints that a property is an instance of a :ref:`Resource<class_Resource>`-derived type, optionally specified via the hint string (e.g. ``"Texture2D"``). Editing it will show a popup menu of valid resource types to instantiate.
  1974. .. _class_@GlobalScope_constant_PROPERTY_HINT_MULTILINE_TEXT:
  1975. .. rst-class:: classref-enumeration-constant
  1976. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_MULTILINE_TEXT** = ``18``
  1977. Hints that a :ref:`String<class_String>` property is text with line breaks. Editing it will show a text input field where line breaks can be typed.
  1978. .. _class_@GlobalScope_constant_PROPERTY_HINT_EXPRESSION:
  1979. .. rst-class:: classref-enumeration-constant
  1980. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_EXPRESSION** = ``19``
  1981. Hints that a :ref:`String<class_String>` property is an :ref:`Expression<class_Expression>`.
  1982. .. _class_@GlobalScope_constant_PROPERTY_HINT_PLACEHOLDER_TEXT:
  1983. .. rst-class:: classref-enumeration-constant
  1984. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_PLACEHOLDER_TEXT** = ``20``
  1985. Hints that a :ref:`String<class_String>` property should show a placeholder text on its input field, if empty. The hint string is the placeholder text to use.
  1986. .. _class_@GlobalScope_constant_PROPERTY_HINT_COLOR_NO_ALPHA:
  1987. .. rst-class:: classref-enumeration-constant
  1988. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_COLOR_NO_ALPHA** = ``21``
  1989. Hints that a :ref:`Color<class_Color>` property should be edited without affecting its transparency (:ref:`Color.a<class_Color_property_a>` is not editable).
  1990. .. _class_@GlobalScope_constant_PROPERTY_HINT_OBJECT_ID:
  1991. .. rst-class:: classref-enumeration-constant
  1992. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_OBJECT_ID** = ``22``
  1993. Hints that the property's value is an object encoded as object ID, with its type specified in the hint string. Used by the debugger.
  1994. .. _class_@GlobalScope_constant_PROPERTY_HINT_TYPE_STRING:
  1995. .. rst-class:: classref-enumeration-constant
  1996. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_TYPE_STRING** = ``23``
  1997. If a property is :ref:`String<class_String>`, hints that the property represents a particular type (class). This allows to select a type from the create dialog. The property will store the selected type as a string.
  1998. If a property is :ref:`Array<class_Array>`, hints the editor how to show elements. The ``hint_string`` must encode nested types using ``":"`` and ``"/"``.
  1999. .. tabs::
  2000. .. code-tab:: gdscript
  2001. # Array of elem_type.
  2002. hint_string = "%d:" % [elem_type]
  2003. hint_string = "%d/%d:%s" % [elem_type, elem_hint, elem_hint_string]
  2004. # Two-dimensional array of elem_type (array of arrays of elem_type).
  2005. hint_string = "%d:%d:" % [TYPE_ARRAY, elem_type]
  2006. hint_string = "%d:%d/%d:%s" % [TYPE_ARRAY, elem_type, elem_hint, elem_hint_string]
  2007. # Three-dimensional array of elem_type (array of arrays of arrays of elem_type).
  2008. hint_string = "%d:%d:%d:" % [TYPE_ARRAY, TYPE_ARRAY, elem_type]
  2009. hint_string = "%d:%d:%d/%d:%s" % [TYPE_ARRAY, TYPE_ARRAY, elem_type, elem_hint, elem_hint_string]
  2010. .. code-tab:: csharp
  2011. // Array of elemType.
  2012. hintString = $"{elemType:D}:";
  2013. hintString = $"{elemType:}/{elemHint:D}:{elemHintString}";
  2014. // Two-dimensional array of elemType (array of arrays of elemType).
  2015. hintString = $"{Variant.Type.Array:D}:{elemType:D}:";
  2016. hintString = $"{Variant.Type.Array:D}:{elemType:D}/{elemHint:D}:{elemHintString}";
  2017. // Three-dimensional array of elemType (array of arrays of arrays of elemType).
  2018. hintString = $"{Variant.Type.Array:D}:{Variant.Type.Array:D}:{elemType:D}:";
  2019. hintString = $"{Variant.Type.Array:D}:{Variant.Type.Array:D}:{elemType:D}/{elemHint:D}:{elemHintString}";
  2020. Examples:
  2021. .. tabs::
  2022. .. code-tab:: gdscript
  2023. hint_string = "%d:" % [TYPE_INT] # Array of integers.
  2024. hint_string = "%d/%d:1,10,1" % [TYPE_INT, PROPERTY_HINT_RANGE] # Array of integers (in range from 1 to 10).
  2025. hint_string = "%d/%d:Zero,One,Two" % [TYPE_INT, PROPERTY_HINT_ENUM] # Array of integers (an enum).
  2026. hint_string = "%d/%d:Zero,One,Three:3,Six:6" % [TYPE_INT, PROPERTY_HINT_ENUM] # Array of integers (an enum).
  2027. hint_string = "%d/%d:*.png" % [TYPE_STRING, PROPERTY_HINT_FILE] # Array of strings (file paths).
  2028. hint_string = "%d/%d:Texture2D" % [TYPE_OBJECT, PROPERTY_HINT_RESOURCE_TYPE] # Array of textures.
  2029. hint_string = "%d:%d:" % [TYPE_ARRAY, TYPE_FLOAT] # Two-dimensional array of floats.
  2030. hint_string = "%d:%d/%d:" % [TYPE_ARRAY, TYPE_STRING, PROPERTY_HINT_MULTILINE_TEXT] # Two-dimensional array of multiline strings.
  2031. hint_string = "%d:%d/%d:-1,1,0.1" % [TYPE_ARRAY, TYPE_FLOAT, PROPERTY_HINT_RANGE] # Two-dimensional array of floats (in range from -1 to 1).
  2032. hint_string = "%d:%d/%d:Texture2D" % [TYPE_ARRAY, TYPE_OBJECT, PROPERTY_HINT_RESOURCE_TYPE] # Two-dimensional array of textures.
  2033. .. code-tab:: csharp
  2034. hintString = $"{Variant.Type.Int:D}/{PropertyHint.Range:D}:1,10,1"; // Array of integers (in range from 1 to 10).
  2035. hintString = $"{Variant.Type.Int:D}/{PropertyHint.Enum:D}:Zero,One,Two"; // Array of integers (an enum).
  2036. hintString = $"{Variant.Type.Int:D}/{PropertyHint.Enum:D}:Zero,One,Three:3,Six:6"; // Array of integers (an enum).
  2037. hintString = $"{Variant.Type.String:D}/{PropertyHint.File:D}:*.png"; // Array of strings (file paths).
  2038. hintString = $"{Variant.Type.Object:D}/{PropertyHint.ResourceType:D}:Texture2D"; // Array of textures.
  2039. hintString = $"{Variant.Type.Array:D}:{Variant.Type.Float:D}:"; // Two-dimensional array of floats.
  2040. hintString = $"{Variant.Type.Array:D}:{Variant.Type.String:D}/{PropertyHint.MultilineText:D}:"; // Two-dimensional array of multiline strings.
  2041. hintString = $"{Variant.Type.Array:D}:{Variant.Type.Float:D}/{PropertyHint.Range:D}:-1,1,0.1"; // Two-dimensional array of floats (in range from -1 to 1).
  2042. hintString = $"{Variant.Type.Array:D}:{Variant.Type.Object:D}/{PropertyHint.ResourceType:D}:Texture2D"; // Two-dimensional array of textures.
  2043. \ **Note:** The trailing colon is required for properly detecting built-in types.
  2044. .. _class_@GlobalScope_constant_PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE:
  2045. .. rst-class:: classref-enumeration-constant
  2046. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE** = ``24``
  2047. **Deprecated:** This hint is not used by the engine.
  2048. .. _class_@GlobalScope_constant_PROPERTY_HINT_OBJECT_TOO_BIG:
  2049. .. rst-class:: classref-enumeration-constant
  2050. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_OBJECT_TOO_BIG** = ``25``
  2051. Hints that an object is too big to be sent via the debugger.
  2052. .. _class_@GlobalScope_constant_PROPERTY_HINT_NODE_PATH_VALID_TYPES:
  2053. .. rst-class:: classref-enumeration-constant
  2054. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_NODE_PATH_VALID_TYPES** = ``26``
  2055. Hints that the hint string specifies valid node types for property of type :ref:`NodePath<class_NodePath>`.
  2056. .. _class_@GlobalScope_constant_PROPERTY_HINT_SAVE_FILE:
  2057. .. rst-class:: classref-enumeration-constant
  2058. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_SAVE_FILE** = ``27``
  2059. Hints that a :ref:`String<class_String>` property is a path to a file. Editing it will show a file dialog for picking the path for the file to be saved at. The dialog has access to the project's directory. The hint string can be a set of filters with wildcards like ``"*.png,*.jpg"``. See also :ref:`FileDialog.filters<class_FileDialog_property_filters>`.
  2060. .. _class_@GlobalScope_constant_PROPERTY_HINT_GLOBAL_SAVE_FILE:
  2061. .. rst-class:: classref-enumeration-constant
  2062. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_GLOBAL_SAVE_FILE** = ``28``
  2063. Hints that a :ref:`String<class_String>` property is a path to a file. Editing it will show a file dialog for picking the path for the file to be saved at. The dialog has access to the entire filesystem. The hint string can be a set of filters with wildcards like ``"*.png,*.jpg"``. See also :ref:`FileDialog.filters<class_FileDialog_property_filters>`.
  2064. .. _class_@GlobalScope_constant_PROPERTY_HINT_INT_IS_OBJECTID:
  2065. .. rst-class:: classref-enumeration-constant
  2066. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_INT_IS_OBJECTID** = ``29``
  2067. **Deprecated:** This hint is not used by the engine.
  2068. .. _class_@GlobalScope_constant_PROPERTY_HINT_INT_IS_POINTER:
  2069. .. rst-class:: classref-enumeration-constant
  2070. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_INT_IS_POINTER** = ``30``
  2071. Hints that an :ref:`int<class_int>` property is a pointer. Used by GDExtension.
  2072. .. _class_@GlobalScope_constant_PROPERTY_HINT_ARRAY_TYPE:
  2073. .. rst-class:: classref-enumeration-constant
  2074. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_ARRAY_TYPE** = ``31``
  2075. Hints that a property is an :ref:`Array<class_Array>` with the stored type specified in the hint string.
  2076. .. _class_@GlobalScope_constant_PROPERTY_HINT_LOCALE_ID:
  2077. .. rst-class:: classref-enumeration-constant
  2078. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LOCALE_ID** = ``32``
  2079. Hints that a string property is a locale code. Editing it will show a locale dialog for picking language and country.
  2080. .. _class_@GlobalScope_constant_PROPERTY_HINT_LOCALIZABLE_STRING:
  2081. .. rst-class:: classref-enumeration-constant
  2082. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_LOCALIZABLE_STRING** = ``33``
  2083. Hints that a dictionary property is string translation map. Dictionary keys are locale codes and, values are translated strings.
  2084. .. _class_@GlobalScope_constant_PROPERTY_HINT_NODE_TYPE:
  2085. .. rst-class:: classref-enumeration-constant
  2086. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_NODE_TYPE** = ``34``
  2087. Hints that a property is an instance of a :ref:`Node<class_Node>`-derived type, optionally specified via the hint string (e.g. ``"Node2D"``). Editing it will show a dialog for picking a node from the scene.
  2088. .. _class_@GlobalScope_constant_PROPERTY_HINT_HIDE_QUATERNION_EDIT:
  2089. .. rst-class:: classref-enumeration-constant
  2090. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_HIDE_QUATERNION_EDIT** = ``35``
  2091. Hints that a quaternion property should disable the temporary euler editor.
  2092. .. _class_@GlobalScope_constant_PROPERTY_HINT_PASSWORD:
  2093. .. rst-class:: classref-enumeration-constant
  2094. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_PASSWORD** = ``36``
  2095. Hints that a string property is a password, and every character is replaced with the secret character.
  2096. .. _class_@GlobalScope_constant_PROPERTY_HINT_MAX:
  2097. .. rst-class:: classref-enumeration-constant
  2098. :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` **PROPERTY_HINT_MAX** = ``38``
  2099. Represents the size of the :ref:`PropertyHint<enum_@GlobalScope_PropertyHint>` enum.
  2100. .. rst-class:: classref-item-separator
  2101. ----
  2102. .. _enum_@GlobalScope_PropertyUsageFlags:
  2103. .. rst-class:: classref-enumeration
  2104. flags **PropertyUsageFlags**:
  2105. .. _class_@GlobalScope_constant_PROPERTY_USAGE_NONE:
  2106. .. rst-class:: classref-enumeration-constant
  2107. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_NONE** = ``0``
  2108. The property is not stored, and does not display in the editor. This is the default for non-exported properties.
  2109. .. _class_@GlobalScope_constant_PROPERTY_USAGE_STORAGE:
  2110. .. rst-class:: classref-enumeration-constant
  2111. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_STORAGE** = ``2``
  2112. The property is serialized and saved in the scene file (default).
  2113. .. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR:
  2114. .. rst-class:: classref-enumeration-constant
  2115. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_EDITOR** = ``4``
  2116. The property is shown in the :ref:`EditorInspector<class_EditorInspector>` (default).
  2117. .. _class_@GlobalScope_constant_PROPERTY_USAGE_INTERNAL:
  2118. .. rst-class:: classref-enumeration-constant
  2119. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_INTERNAL** = ``8``
  2120. The property is excluded from the class reference.
  2121. .. _class_@GlobalScope_constant_PROPERTY_USAGE_CHECKABLE:
  2122. .. rst-class:: classref-enumeration-constant
  2123. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_CHECKABLE** = ``16``
  2124. The property can be checked in the :ref:`EditorInspector<class_EditorInspector>`.
  2125. .. _class_@GlobalScope_constant_PROPERTY_USAGE_CHECKED:
  2126. .. rst-class:: classref-enumeration-constant
  2127. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_CHECKED** = ``32``
  2128. The property is checked in the :ref:`EditorInspector<class_EditorInspector>`.
  2129. .. _class_@GlobalScope_constant_PROPERTY_USAGE_GROUP:
  2130. .. rst-class:: classref-enumeration-constant
  2131. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_GROUP** = ``64``
  2132. Used to group properties together in the editor. See :ref:`EditorInspector<class_EditorInspector>`.
  2133. .. _class_@GlobalScope_constant_PROPERTY_USAGE_CATEGORY:
  2134. .. rst-class:: classref-enumeration-constant
  2135. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_CATEGORY** = ``128``
  2136. Used to categorize properties together in the editor.
  2137. .. _class_@GlobalScope_constant_PROPERTY_USAGE_SUBGROUP:
  2138. .. rst-class:: classref-enumeration-constant
  2139. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_SUBGROUP** = ``256``
  2140. Used to group properties together in the editor in a subgroup (under a group). See :ref:`EditorInspector<class_EditorInspector>`.
  2141. .. _class_@GlobalScope_constant_PROPERTY_USAGE_CLASS_IS_BITFIELD:
  2142. .. rst-class:: classref-enumeration-constant
  2143. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_CLASS_IS_BITFIELD** = ``512``
  2144. The property is a bitfield, i.e. it contains multiple flags represented as bits.
  2145. .. _class_@GlobalScope_constant_PROPERTY_USAGE_NO_INSTANCE_STATE:
  2146. .. rst-class:: classref-enumeration-constant
  2147. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_NO_INSTANCE_STATE** = ``1024``
  2148. The property does not save its state in :ref:`PackedScene<class_PackedScene>`.
  2149. .. _class_@GlobalScope_constant_PROPERTY_USAGE_RESTART_IF_CHANGED:
  2150. .. rst-class:: classref-enumeration-constant
  2151. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_RESTART_IF_CHANGED** = ``2048``
  2152. Editing the property prompts the user for restarting the editor.
  2153. .. _class_@GlobalScope_constant_PROPERTY_USAGE_SCRIPT_VARIABLE:
  2154. .. rst-class:: classref-enumeration-constant
  2155. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_SCRIPT_VARIABLE** = ``4096``
  2156. The property is a script variable which should be serialized and saved in the scene file.
  2157. .. _class_@GlobalScope_constant_PROPERTY_USAGE_STORE_IF_NULL:
  2158. .. rst-class:: classref-enumeration-constant
  2159. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_STORE_IF_NULL** = ``8192``
  2160. The property value of type :ref:`Object<class_Object>` will be stored even if its value is ``null``.
  2161. .. _class_@GlobalScope_constant_PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED:
  2162. .. rst-class:: classref-enumeration-constant
  2163. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED** = ``16384``
  2164. If this property is modified, all inspector fields will be refreshed.
  2165. .. _class_@GlobalScope_constant_PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE:
  2166. .. rst-class:: classref-enumeration-constant
  2167. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE** = ``32768``
  2168. **Deprecated:** This flag is not used by the engine.
  2169. .. _class_@GlobalScope_constant_PROPERTY_USAGE_CLASS_IS_ENUM:
  2170. .. rst-class:: classref-enumeration-constant
  2171. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_CLASS_IS_ENUM** = ``65536``
  2172. The property is an enum, i.e. it only takes named integer constants from its associated enumeration.
  2173. .. _class_@GlobalScope_constant_PROPERTY_USAGE_NIL_IS_VARIANT:
  2174. .. rst-class:: classref-enumeration-constant
  2175. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_NIL_IS_VARIANT** = ``131072``
  2176. If property has ``nil`` as default value, its type will be :ref:`Variant<class_Variant>`.
  2177. .. _class_@GlobalScope_constant_PROPERTY_USAGE_ARRAY:
  2178. .. rst-class:: classref-enumeration-constant
  2179. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_ARRAY** = ``262144``
  2180. The property is an array.
  2181. .. _class_@GlobalScope_constant_PROPERTY_USAGE_ALWAYS_DUPLICATE:
  2182. .. rst-class:: classref-enumeration-constant
  2183. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_ALWAYS_DUPLICATE** = ``524288``
  2184. When duplicating a resource with :ref:`Resource.duplicate<class_Resource_method_duplicate>`, and this flag is set on a property of that resource, the property should always be duplicated, regardless of the ``subresources`` bool parameter.
  2185. .. _class_@GlobalScope_constant_PROPERTY_USAGE_NEVER_DUPLICATE:
  2186. .. rst-class:: classref-enumeration-constant
  2187. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_NEVER_DUPLICATE** = ``1048576``
  2188. When duplicating a resource with :ref:`Resource.duplicate<class_Resource_method_duplicate>`, and this flag is set on a property of that resource, the property should never be duplicated, regardless of the ``subresources`` bool parameter.
  2189. .. _class_@GlobalScope_constant_PROPERTY_USAGE_HIGH_END_GFX:
  2190. .. rst-class:: classref-enumeration-constant
  2191. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_HIGH_END_GFX** = ``2097152``
  2192. The property is only shown in the editor if modern renderers are supported (the Compatibility rendering method is excluded).
  2193. .. _class_@GlobalScope_constant_PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT:
  2194. .. rst-class:: classref-enumeration-constant
  2195. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT** = ``4194304``
  2196. The :ref:`NodePath<class_NodePath>` property will always be relative to the scene's root. Mostly useful for local resources.
  2197. .. _class_@GlobalScope_constant_PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT:
  2198. .. rst-class:: classref-enumeration-constant
  2199. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT** = ``8388608``
  2200. Use when a resource is created on the fly, i.e. the getter will always return a different instance. :ref:`ResourceSaver<class_ResourceSaver>` needs this information to properly save such resources.
  2201. .. _class_@GlobalScope_constant_PROPERTY_USAGE_KEYING_INCREMENTS:
  2202. .. rst-class:: classref-enumeration-constant
  2203. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_KEYING_INCREMENTS** = ``16777216``
  2204. Inserting an animation key frame of this property will automatically increment the value, allowing to easily keyframe multiple values in a row.
  2205. .. _class_@GlobalScope_constant_PROPERTY_USAGE_DEFERRED_SET_RESOURCE:
  2206. .. rst-class:: classref-enumeration-constant
  2207. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_DEFERRED_SET_RESOURCE** = ``33554432``
  2208. **Deprecated:** This flag is not used by the engine.
  2209. .. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT:
  2210. .. rst-class:: classref-enumeration-constant
  2211. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT** = ``67108864``
  2212. When this property is a :ref:`Resource<class_Resource>` and base object is a :ref:`Node<class_Node>`, a resource instance will be automatically created whenever the node is created in the editor.
  2213. .. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR_BASIC_SETTING:
  2214. .. rst-class:: classref-enumeration-constant
  2215. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_EDITOR_BASIC_SETTING** = ``134217728``
  2216. The property is considered a basic setting and will appear even when advanced mode is disabled. Used for project settings.
  2217. .. _class_@GlobalScope_constant_PROPERTY_USAGE_READ_ONLY:
  2218. .. rst-class:: classref-enumeration-constant
  2219. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_READ_ONLY** = ``268435456``
  2220. The property is read-only in the :ref:`EditorInspector<class_EditorInspector>`.
  2221. .. _class_@GlobalScope_constant_PROPERTY_USAGE_SECRET:
  2222. .. rst-class:: classref-enumeration-constant
  2223. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_SECRET** = ``536870912``
  2224. An export preset property with this flag contains confidential information and is stored separately from the rest of the export preset configuration.
  2225. .. _class_@GlobalScope_constant_PROPERTY_USAGE_DEFAULT:
  2226. .. rst-class:: classref-enumeration-constant
  2227. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_DEFAULT** = ``6``
  2228. Default usage (storage and editor).
  2229. .. _class_@GlobalScope_constant_PROPERTY_USAGE_NO_EDITOR:
  2230. .. rst-class:: classref-enumeration-constant
  2231. :ref:`PropertyUsageFlags<enum_@GlobalScope_PropertyUsageFlags>` **PROPERTY_USAGE_NO_EDITOR** = ``2``
  2232. Default usage but without showing the property in the editor (storage).
  2233. .. rst-class:: classref-item-separator
  2234. ----
  2235. .. _enum_@GlobalScope_MethodFlags:
  2236. .. rst-class:: classref-enumeration
  2237. flags **MethodFlags**:
  2238. .. _class_@GlobalScope_constant_METHOD_FLAG_NORMAL:
  2239. .. rst-class:: classref-enumeration-constant
  2240. :ref:`MethodFlags<enum_@GlobalScope_MethodFlags>` **METHOD_FLAG_NORMAL** = ``1``
  2241. Flag for a normal method.
  2242. .. _class_@GlobalScope_constant_METHOD_FLAG_EDITOR:
  2243. .. rst-class:: classref-enumeration-constant
  2244. :ref:`MethodFlags<enum_@GlobalScope_MethodFlags>` **METHOD_FLAG_EDITOR** = ``2``
  2245. Flag for an editor method.
  2246. .. _class_@GlobalScope_constant_METHOD_FLAG_CONST:
  2247. .. rst-class:: classref-enumeration-constant
  2248. :ref:`MethodFlags<enum_@GlobalScope_MethodFlags>` **METHOD_FLAG_CONST** = ``4``
  2249. Flag for a constant method.
  2250. .. _class_@GlobalScope_constant_METHOD_FLAG_VIRTUAL:
  2251. .. rst-class:: classref-enumeration-constant
  2252. :ref:`MethodFlags<enum_@GlobalScope_MethodFlags>` **METHOD_FLAG_VIRTUAL** = ``8``
  2253. Flag for a virtual method.
  2254. .. _class_@GlobalScope_constant_METHOD_FLAG_VARARG:
  2255. .. rst-class:: classref-enumeration-constant
  2256. :ref:`MethodFlags<enum_@GlobalScope_MethodFlags>` **METHOD_FLAG_VARARG** = ``16``
  2257. Flag for a method with a variable number of arguments.
  2258. .. _class_@GlobalScope_constant_METHOD_FLAG_STATIC:
  2259. .. rst-class:: classref-enumeration-constant
  2260. :ref:`MethodFlags<enum_@GlobalScope_MethodFlags>` **METHOD_FLAG_STATIC** = ``32``
  2261. Flag for a static method.
  2262. .. _class_@GlobalScope_constant_METHOD_FLAG_OBJECT_CORE:
  2263. .. rst-class:: classref-enumeration-constant
  2264. :ref:`MethodFlags<enum_@GlobalScope_MethodFlags>` **METHOD_FLAG_OBJECT_CORE** = ``64``
  2265. Used internally. Allows to not dump core virtual methods (such as :ref:`Object._notification<class_Object_private_method__notification>`) to the JSON API.
  2266. .. _class_@GlobalScope_constant_METHOD_FLAGS_DEFAULT:
  2267. .. rst-class:: classref-enumeration-constant
  2268. :ref:`MethodFlags<enum_@GlobalScope_MethodFlags>` **METHOD_FLAGS_DEFAULT** = ``1``
  2269. Default method flags (normal).
  2270. .. rst-class:: classref-item-separator
  2271. ----
  2272. .. _enum_@GlobalScope_Variant.Type:
  2273. .. rst-class:: classref-enumeration
  2274. enum **Variant.Type**:
  2275. .. _class_@GlobalScope_constant_TYPE_NIL:
  2276. .. rst-class:: classref-enumeration-constant
  2277. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_NIL** = ``0``
  2278. Variable is ``null``.
  2279. .. _class_@GlobalScope_constant_TYPE_BOOL:
  2280. .. rst-class:: classref-enumeration-constant
  2281. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_BOOL** = ``1``
  2282. Variable is of type :ref:`bool<class_bool>`.
  2283. .. _class_@GlobalScope_constant_TYPE_INT:
  2284. .. rst-class:: classref-enumeration-constant
  2285. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_INT** = ``2``
  2286. Variable is of type :ref:`int<class_int>`.
  2287. .. _class_@GlobalScope_constant_TYPE_FLOAT:
  2288. .. rst-class:: classref-enumeration-constant
  2289. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_FLOAT** = ``3``
  2290. Variable is of type :ref:`float<class_float>`.
  2291. .. _class_@GlobalScope_constant_TYPE_STRING:
  2292. .. rst-class:: classref-enumeration-constant
  2293. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_STRING** = ``4``
  2294. Variable is of type :ref:`String<class_String>`.
  2295. .. _class_@GlobalScope_constant_TYPE_VECTOR2:
  2296. .. rst-class:: classref-enumeration-constant
  2297. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_VECTOR2** = ``5``
  2298. Variable is of type :ref:`Vector2<class_Vector2>`.
  2299. .. _class_@GlobalScope_constant_TYPE_VECTOR2I:
  2300. .. rst-class:: classref-enumeration-constant
  2301. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_VECTOR2I** = ``6``
  2302. Variable is of type :ref:`Vector2i<class_Vector2i>`.
  2303. .. _class_@GlobalScope_constant_TYPE_RECT2:
  2304. .. rst-class:: classref-enumeration-constant
  2305. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_RECT2** = ``7``
  2306. Variable is of type :ref:`Rect2<class_Rect2>`.
  2307. .. _class_@GlobalScope_constant_TYPE_RECT2I:
  2308. .. rst-class:: classref-enumeration-constant
  2309. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_RECT2I** = ``8``
  2310. Variable is of type :ref:`Rect2i<class_Rect2i>`.
  2311. .. _class_@GlobalScope_constant_TYPE_VECTOR3:
  2312. .. rst-class:: classref-enumeration-constant
  2313. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_VECTOR3** = ``9``
  2314. Variable is of type :ref:`Vector3<class_Vector3>`.
  2315. .. _class_@GlobalScope_constant_TYPE_VECTOR3I:
  2316. .. rst-class:: classref-enumeration-constant
  2317. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_VECTOR3I** = ``10``
  2318. Variable is of type :ref:`Vector3i<class_Vector3i>`.
  2319. .. _class_@GlobalScope_constant_TYPE_TRANSFORM2D:
  2320. .. rst-class:: classref-enumeration-constant
  2321. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_TRANSFORM2D** = ``11``
  2322. Variable is of type :ref:`Transform2D<class_Transform2D>`.
  2323. .. _class_@GlobalScope_constant_TYPE_VECTOR4:
  2324. .. rst-class:: classref-enumeration-constant
  2325. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_VECTOR4** = ``12``
  2326. Variable is of type :ref:`Vector4<class_Vector4>`.
  2327. .. _class_@GlobalScope_constant_TYPE_VECTOR4I:
  2328. .. rst-class:: classref-enumeration-constant
  2329. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_VECTOR4I** = ``13``
  2330. Variable is of type :ref:`Vector4i<class_Vector4i>`.
  2331. .. _class_@GlobalScope_constant_TYPE_PLANE:
  2332. .. rst-class:: classref-enumeration-constant
  2333. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PLANE** = ``14``
  2334. Variable is of type :ref:`Plane<class_Plane>`.
  2335. .. _class_@GlobalScope_constant_TYPE_QUATERNION:
  2336. .. rst-class:: classref-enumeration-constant
  2337. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_QUATERNION** = ``15``
  2338. Variable is of type :ref:`Quaternion<class_Quaternion>`.
  2339. .. _class_@GlobalScope_constant_TYPE_AABB:
  2340. .. rst-class:: classref-enumeration-constant
  2341. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_AABB** = ``16``
  2342. Variable is of type :ref:`AABB<class_AABB>`.
  2343. .. _class_@GlobalScope_constant_TYPE_BASIS:
  2344. .. rst-class:: classref-enumeration-constant
  2345. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_BASIS** = ``17``
  2346. Variable is of type :ref:`Basis<class_Basis>`.
  2347. .. _class_@GlobalScope_constant_TYPE_TRANSFORM3D:
  2348. .. rst-class:: classref-enumeration-constant
  2349. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_TRANSFORM3D** = ``18``
  2350. Variable is of type :ref:`Transform3D<class_Transform3D>`.
  2351. .. _class_@GlobalScope_constant_TYPE_PROJECTION:
  2352. .. rst-class:: classref-enumeration-constant
  2353. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PROJECTION** = ``19``
  2354. Variable is of type :ref:`Projection<class_Projection>`.
  2355. .. _class_@GlobalScope_constant_TYPE_COLOR:
  2356. .. rst-class:: classref-enumeration-constant
  2357. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_COLOR** = ``20``
  2358. Variable is of type :ref:`Color<class_Color>`.
  2359. .. _class_@GlobalScope_constant_TYPE_STRING_NAME:
  2360. .. rst-class:: classref-enumeration-constant
  2361. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_STRING_NAME** = ``21``
  2362. Variable is of type :ref:`StringName<class_StringName>`.
  2363. .. _class_@GlobalScope_constant_TYPE_NODE_PATH:
  2364. .. rst-class:: classref-enumeration-constant
  2365. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_NODE_PATH** = ``22``
  2366. Variable is of type :ref:`NodePath<class_NodePath>`.
  2367. .. _class_@GlobalScope_constant_TYPE_RID:
  2368. .. rst-class:: classref-enumeration-constant
  2369. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_RID** = ``23``
  2370. Variable is of type :ref:`RID<class_RID>`.
  2371. .. _class_@GlobalScope_constant_TYPE_OBJECT:
  2372. .. rst-class:: classref-enumeration-constant
  2373. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_OBJECT** = ``24``
  2374. Variable is of type :ref:`Object<class_Object>`.
  2375. .. _class_@GlobalScope_constant_TYPE_CALLABLE:
  2376. .. rst-class:: classref-enumeration-constant
  2377. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_CALLABLE** = ``25``
  2378. Variable is of type :ref:`Callable<class_Callable>`.
  2379. .. _class_@GlobalScope_constant_TYPE_SIGNAL:
  2380. .. rst-class:: classref-enumeration-constant
  2381. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_SIGNAL** = ``26``
  2382. Variable is of type :ref:`Signal<class_Signal>`.
  2383. .. _class_@GlobalScope_constant_TYPE_DICTIONARY:
  2384. .. rst-class:: classref-enumeration-constant
  2385. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_DICTIONARY** = ``27``
  2386. Variable is of type :ref:`Dictionary<class_Dictionary>`.
  2387. .. _class_@GlobalScope_constant_TYPE_ARRAY:
  2388. .. rst-class:: classref-enumeration-constant
  2389. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_ARRAY** = ``28``
  2390. Variable is of type :ref:`Array<class_Array>`.
  2391. .. _class_@GlobalScope_constant_TYPE_PACKED_BYTE_ARRAY:
  2392. .. rst-class:: classref-enumeration-constant
  2393. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_BYTE_ARRAY** = ``29``
  2394. Variable is of type :ref:`PackedByteArray<class_PackedByteArray>`.
  2395. .. _class_@GlobalScope_constant_TYPE_PACKED_INT32_ARRAY:
  2396. .. rst-class:: classref-enumeration-constant
  2397. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_INT32_ARRAY** = ``30``
  2398. Variable is of type :ref:`PackedInt32Array<class_PackedInt32Array>`.
  2399. .. _class_@GlobalScope_constant_TYPE_PACKED_INT64_ARRAY:
  2400. .. rst-class:: classref-enumeration-constant
  2401. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_INT64_ARRAY** = ``31``
  2402. Variable is of type :ref:`PackedInt64Array<class_PackedInt64Array>`.
  2403. .. _class_@GlobalScope_constant_TYPE_PACKED_FLOAT32_ARRAY:
  2404. .. rst-class:: classref-enumeration-constant
  2405. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_FLOAT32_ARRAY** = ``32``
  2406. Variable is of type :ref:`PackedFloat32Array<class_PackedFloat32Array>`.
  2407. .. _class_@GlobalScope_constant_TYPE_PACKED_FLOAT64_ARRAY:
  2408. .. rst-class:: classref-enumeration-constant
  2409. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_FLOAT64_ARRAY** = ``33``
  2410. Variable is of type :ref:`PackedFloat64Array<class_PackedFloat64Array>`.
  2411. .. _class_@GlobalScope_constant_TYPE_PACKED_STRING_ARRAY:
  2412. .. rst-class:: classref-enumeration-constant
  2413. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_STRING_ARRAY** = ``34``
  2414. Variable is of type :ref:`PackedStringArray<class_PackedStringArray>`.
  2415. .. _class_@GlobalScope_constant_TYPE_PACKED_VECTOR2_ARRAY:
  2416. .. rst-class:: classref-enumeration-constant
  2417. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_VECTOR2_ARRAY** = ``35``
  2418. Variable is of type :ref:`PackedVector2Array<class_PackedVector2Array>`.
  2419. .. _class_@GlobalScope_constant_TYPE_PACKED_VECTOR3_ARRAY:
  2420. .. rst-class:: classref-enumeration-constant
  2421. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_VECTOR3_ARRAY** = ``36``
  2422. Variable is of type :ref:`PackedVector3Array<class_PackedVector3Array>`.
  2423. .. _class_@GlobalScope_constant_TYPE_PACKED_COLOR_ARRAY:
  2424. .. rst-class:: classref-enumeration-constant
  2425. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_COLOR_ARRAY** = ``37``
  2426. Variable is of type :ref:`PackedColorArray<class_PackedColorArray>`.
  2427. .. _class_@GlobalScope_constant_TYPE_PACKED_VECTOR4_ARRAY:
  2428. .. rst-class:: classref-enumeration-constant
  2429. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_PACKED_VECTOR4_ARRAY** = ``38``
  2430. Variable is of type :ref:`PackedVector4Array<class_PackedVector4Array>`.
  2431. .. _class_@GlobalScope_constant_TYPE_MAX:
  2432. .. rst-class:: classref-enumeration-constant
  2433. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **TYPE_MAX** = ``39``
  2434. Represents the size of the :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` enum.
  2435. .. rst-class:: classref-item-separator
  2436. ----
  2437. .. _enum_@GlobalScope_Variant.Operator:
  2438. .. rst-class:: classref-enumeration
  2439. enum **Variant.Operator**:
  2440. .. _class_@GlobalScope_constant_OP_EQUAL:
  2441. .. rst-class:: classref-enumeration-constant
  2442. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_EQUAL** = ``0``
  2443. Equality operator (``==``).
  2444. .. _class_@GlobalScope_constant_OP_NOT_EQUAL:
  2445. .. rst-class:: classref-enumeration-constant
  2446. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_NOT_EQUAL** = ``1``
  2447. Inequality operator (``!=``).
  2448. .. _class_@GlobalScope_constant_OP_LESS:
  2449. .. rst-class:: classref-enumeration-constant
  2450. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_LESS** = ``2``
  2451. Less than operator (``<``).
  2452. .. _class_@GlobalScope_constant_OP_LESS_EQUAL:
  2453. .. rst-class:: classref-enumeration-constant
  2454. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_LESS_EQUAL** = ``3``
  2455. Less than or equal operator (``<=``).
  2456. .. _class_@GlobalScope_constant_OP_GREATER:
  2457. .. rst-class:: classref-enumeration-constant
  2458. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_GREATER** = ``4``
  2459. Greater than operator (``>``).
  2460. .. _class_@GlobalScope_constant_OP_GREATER_EQUAL:
  2461. .. rst-class:: classref-enumeration-constant
  2462. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_GREATER_EQUAL** = ``5``
  2463. Greater than or equal operator (``>=``).
  2464. .. _class_@GlobalScope_constant_OP_ADD:
  2465. .. rst-class:: classref-enumeration-constant
  2466. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_ADD** = ``6``
  2467. Addition operator (``+``).
  2468. .. _class_@GlobalScope_constant_OP_SUBTRACT:
  2469. .. rst-class:: classref-enumeration-constant
  2470. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_SUBTRACT** = ``7``
  2471. Subtraction operator (``-``).
  2472. .. _class_@GlobalScope_constant_OP_MULTIPLY:
  2473. .. rst-class:: classref-enumeration-constant
  2474. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_MULTIPLY** = ``8``
  2475. Multiplication operator (``*``).
  2476. .. _class_@GlobalScope_constant_OP_DIVIDE:
  2477. .. rst-class:: classref-enumeration-constant
  2478. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_DIVIDE** = ``9``
  2479. Division operator (``/``).
  2480. .. _class_@GlobalScope_constant_OP_NEGATE:
  2481. .. rst-class:: classref-enumeration-constant
  2482. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_NEGATE** = ``10``
  2483. Unary negation operator (``-``).
  2484. .. _class_@GlobalScope_constant_OP_POSITIVE:
  2485. .. rst-class:: classref-enumeration-constant
  2486. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_POSITIVE** = ``11``
  2487. Unary plus operator (``+``).
  2488. .. _class_@GlobalScope_constant_OP_MODULE:
  2489. .. rst-class:: classref-enumeration-constant
  2490. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_MODULE** = ``12``
  2491. Remainder/modulo operator (``%``).
  2492. .. _class_@GlobalScope_constant_OP_POWER:
  2493. .. rst-class:: classref-enumeration-constant
  2494. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_POWER** = ``13``
  2495. Power operator (``**``).
  2496. .. _class_@GlobalScope_constant_OP_SHIFT_LEFT:
  2497. .. rst-class:: classref-enumeration-constant
  2498. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_SHIFT_LEFT** = ``14``
  2499. Left shift operator (``<<``).
  2500. .. _class_@GlobalScope_constant_OP_SHIFT_RIGHT:
  2501. .. rst-class:: classref-enumeration-constant
  2502. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_SHIFT_RIGHT** = ``15``
  2503. Right shift operator (``>>``).
  2504. .. _class_@GlobalScope_constant_OP_BIT_AND:
  2505. .. rst-class:: classref-enumeration-constant
  2506. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_BIT_AND** = ``16``
  2507. Bitwise AND operator (``&``).
  2508. .. _class_@GlobalScope_constant_OP_BIT_OR:
  2509. .. rst-class:: classref-enumeration-constant
  2510. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_BIT_OR** = ``17``
  2511. Bitwise OR operator (``|``).
  2512. .. _class_@GlobalScope_constant_OP_BIT_XOR:
  2513. .. rst-class:: classref-enumeration-constant
  2514. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_BIT_XOR** = ``18``
  2515. Bitwise XOR operator (``^``).
  2516. .. _class_@GlobalScope_constant_OP_BIT_NEGATE:
  2517. .. rst-class:: classref-enumeration-constant
  2518. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_BIT_NEGATE** = ``19``
  2519. Bitwise NOT operator (``~``).
  2520. .. _class_@GlobalScope_constant_OP_AND:
  2521. .. rst-class:: classref-enumeration-constant
  2522. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_AND** = ``20``
  2523. Logical AND operator (``and`` or ``&&``).
  2524. .. _class_@GlobalScope_constant_OP_OR:
  2525. .. rst-class:: classref-enumeration-constant
  2526. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_OR** = ``21``
  2527. Logical OR operator (``or`` or ``||``).
  2528. .. _class_@GlobalScope_constant_OP_XOR:
  2529. .. rst-class:: classref-enumeration-constant
  2530. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_XOR** = ``22``
  2531. Logical XOR operator (not implemented in GDScript).
  2532. .. _class_@GlobalScope_constant_OP_NOT:
  2533. .. rst-class:: classref-enumeration-constant
  2534. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_NOT** = ``23``
  2535. Logical NOT operator (``not`` or ``!``).
  2536. .. _class_@GlobalScope_constant_OP_IN:
  2537. .. rst-class:: classref-enumeration-constant
  2538. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_IN** = ``24``
  2539. Logical IN operator (``in``).
  2540. .. _class_@GlobalScope_constant_OP_MAX:
  2541. .. rst-class:: classref-enumeration-constant
  2542. :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` **OP_MAX** = ``25``
  2543. Represents the size of the :ref:`Variant.Operator<enum_@GlobalScope_Variant.Operator>` enum.
  2544. .. rst-class:: classref-section-separator
  2545. ----
  2546. .. rst-class:: classref-descriptions-group
  2547. Property Descriptions
  2548. ---------------------
  2549. .. _class_@GlobalScope_property_AudioServer:
  2550. .. rst-class:: classref-property
  2551. :ref:`AudioServer<class_AudioServer>` **AudioServer**
  2552. The :ref:`AudioServer<class_AudioServer>` singleton.
  2553. .. rst-class:: classref-item-separator
  2554. ----
  2555. .. _class_@GlobalScope_property_CameraServer:
  2556. .. rst-class:: classref-property
  2557. :ref:`CameraServer<class_CameraServer>` **CameraServer**
  2558. The :ref:`CameraServer<class_CameraServer>` singleton.
  2559. .. rst-class:: classref-item-separator
  2560. ----
  2561. .. _class_@GlobalScope_property_ClassDB:
  2562. .. rst-class:: classref-property
  2563. :ref:`ClassDB<class_ClassDB>` **ClassDB**
  2564. The :ref:`ClassDB<class_ClassDB>` singleton.
  2565. .. rst-class:: classref-item-separator
  2566. ----
  2567. .. _class_@GlobalScope_property_DisplayServer:
  2568. .. rst-class:: classref-property
  2569. :ref:`DisplayServer<class_DisplayServer>` **DisplayServer**
  2570. The :ref:`DisplayServer<class_DisplayServer>` singleton.
  2571. .. rst-class:: classref-item-separator
  2572. ----
  2573. .. _class_@GlobalScope_property_EditorInterface:
  2574. .. rst-class:: classref-property
  2575. :ref:`EditorInterface<class_EditorInterface>` **EditorInterface**
  2576. The :ref:`EditorInterface<class_EditorInterface>` singleton.
  2577. \ **Note:** Only available in editor builds.
  2578. .. rst-class:: classref-item-separator
  2579. ----
  2580. .. _class_@GlobalScope_property_Engine:
  2581. .. rst-class:: classref-property
  2582. :ref:`Engine<class_Engine>` **Engine**
  2583. The :ref:`Engine<class_Engine>` singleton.
  2584. .. rst-class:: classref-item-separator
  2585. ----
  2586. .. _class_@GlobalScope_property_EngineDebugger:
  2587. .. rst-class:: classref-property
  2588. :ref:`EngineDebugger<class_EngineDebugger>` **EngineDebugger**
  2589. The :ref:`EngineDebugger<class_EngineDebugger>` singleton.
  2590. .. rst-class:: classref-item-separator
  2591. ----
  2592. .. _class_@GlobalScope_property_GDExtensionManager:
  2593. .. rst-class:: classref-property
  2594. :ref:`GDExtensionManager<class_GDExtensionManager>` **GDExtensionManager**
  2595. The :ref:`GDExtensionManager<class_GDExtensionManager>` singleton.
  2596. .. rst-class:: classref-item-separator
  2597. ----
  2598. .. _class_@GlobalScope_property_Geometry2D:
  2599. .. rst-class:: classref-property
  2600. :ref:`Geometry2D<class_Geometry2D>` **Geometry2D**
  2601. The :ref:`Geometry2D<class_Geometry2D>` singleton.
  2602. .. rst-class:: classref-item-separator
  2603. ----
  2604. .. _class_@GlobalScope_property_Geometry3D:
  2605. .. rst-class:: classref-property
  2606. :ref:`Geometry3D<class_Geometry3D>` **Geometry3D**
  2607. The :ref:`Geometry3D<class_Geometry3D>` singleton.
  2608. .. rst-class:: classref-item-separator
  2609. ----
  2610. .. _class_@GlobalScope_property_GodotSharp:
  2611. .. rst-class:: classref-property
  2612. :ref:`GodotSharp<class_GodotSharp>` **GodotSharp**
  2613. The :ref:`GodotSharp<class_GodotSharp>` singleton.
  2614. .. rst-class:: classref-item-separator
  2615. ----
  2616. .. _class_@GlobalScope_property_IP:
  2617. .. rst-class:: classref-property
  2618. :ref:`IP<class_IP>` **IP**
  2619. The :ref:`IP<class_IP>` singleton.
  2620. .. rst-class:: classref-item-separator
  2621. ----
  2622. .. _class_@GlobalScope_property_Input:
  2623. .. rst-class:: classref-property
  2624. :ref:`Input<class_Input>` **Input**
  2625. The :ref:`Input<class_Input>` singleton.
  2626. .. rst-class:: classref-item-separator
  2627. ----
  2628. .. _class_@GlobalScope_property_InputMap:
  2629. .. rst-class:: classref-property
  2630. :ref:`InputMap<class_InputMap>` **InputMap**
  2631. The :ref:`InputMap<class_InputMap>` singleton.
  2632. .. rst-class:: classref-item-separator
  2633. ----
  2634. .. _class_@GlobalScope_property_JavaClassWrapper:
  2635. .. rst-class:: classref-property
  2636. :ref:`JavaClassWrapper<class_JavaClassWrapper>` **JavaClassWrapper**
  2637. The :ref:`JavaClassWrapper<class_JavaClassWrapper>` singleton.
  2638. \ **Note:** Only implemented on Android.
  2639. .. rst-class:: classref-item-separator
  2640. ----
  2641. .. _class_@GlobalScope_property_JavaScriptBridge:
  2642. .. rst-class:: classref-property
  2643. :ref:`JavaScriptBridge<class_JavaScriptBridge>` **JavaScriptBridge**
  2644. The :ref:`JavaScriptBridge<class_JavaScriptBridge>` singleton.
  2645. \ **Note:** Only implemented on the Web platform.
  2646. .. rst-class:: classref-item-separator
  2647. ----
  2648. .. _class_@GlobalScope_property_Marshalls:
  2649. .. rst-class:: classref-property
  2650. :ref:`Marshalls<class_Marshalls>` **Marshalls**
  2651. The :ref:`Marshalls<class_Marshalls>` singleton.
  2652. .. rst-class:: classref-item-separator
  2653. ----
  2654. .. _class_@GlobalScope_property_NativeMenu:
  2655. .. rst-class:: classref-property
  2656. :ref:`NativeMenu<class_NativeMenu>` **NativeMenu**
  2657. The :ref:`NativeMenu<class_NativeMenu>` singleton.
  2658. \ **Note:** Only implemented on macOS.
  2659. .. rst-class:: classref-item-separator
  2660. ----
  2661. .. _class_@GlobalScope_property_NavigationMeshGenerator:
  2662. .. rst-class:: classref-property
  2663. :ref:`NavigationMeshGenerator<class_NavigationMeshGenerator>` **NavigationMeshGenerator**
  2664. The :ref:`NavigationMeshGenerator<class_NavigationMeshGenerator>` singleton.
  2665. .. rst-class:: classref-item-separator
  2666. ----
  2667. .. _class_@GlobalScope_property_NavigationServer2D:
  2668. .. rst-class:: classref-property
  2669. :ref:`NavigationServer2D<class_NavigationServer2D>` **NavigationServer2D**
  2670. The :ref:`NavigationServer2D<class_NavigationServer2D>` singleton.
  2671. .. rst-class:: classref-item-separator
  2672. ----
  2673. .. _class_@GlobalScope_property_NavigationServer3D:
  2674. .. rst-class:: classref-property
  2675. :ref:`NavigationServer3D<class_NavigationServer3D>` **NavigationServer3D**
  2676. The :ref:`NavigationServer3D<class_NavigationServer3D>` singleton.
  2677. .. rst-class:: classref-item-separator
  2678. ----
  2679. .. _class_@GlobalScope_property_OS:
  2680. .. rst-class:: classref-property
  2681. :ref:`OS<class_OS>` **OS**
  2682. The :ref:`OS<class_OS>` singleton.
  2683. .. rst-class:: classref-item-separator
  2684. ----
  2685. .. _class_@GlobalScope_property_Performance:
  2686. .. rst-class:: classref-property
  2687. :ref:`Performance<class_Performance>` **Performance**
  2688. The :ref:`Performance<class_Performance>` singleton.
  2689. .. rst-class:: classref-item-separator
  2690. ----
  2691. .. _class_@GlobalScope_property_PhysicsServer2D:
  2692. .. rst-class:: classref-property
  2693. :ref:`PhysicsServer2D<class_PhysicsServer2D>` **PhysicsServer2D**
  2694. The :ref:`PhysicsServer2D<class_PhysicsServer2D>` singleton.
  2695. .. rst-class:: classref-item-separator
  2696. ----
  2697. .. _class_@GlobalScope_property_PhysicsServer2DManager:
  2698. .. rst-class:: classref-property
  2699. :ref:`PhysicsServer2DManager<class_PhysicsServer2DManager>` **PhysicsServer2DManager**
  2700. The :ref:`PhysicsServer2DManager<class_PhysicsServer2DManager>` singleton.
  2701. .. rst-class:: classref-item-separator
  2702. ----
  2703. .. _class_@GlobalScope_property_PhysicsServer3D:
  2704. .. rst-class:: classref-property
  2705. :ref:`PhysicsServer3D<class_PhysicsServer3D>` **PhysicsServer3D**
  2706. The :ref:`PhysicsServer3D<class_PhysicsServer3D>` singleton.
  2707. .. rst-class:: classref-item-separator
  2708. ----
  2709. .. _class_@GlobalScope_property_PhysicsServer3DManager:
  2710. .. rst-class:: classref-property
  2711. :ref:`PhysicsServer3DManager<class_PhysicsServer3DManager>` **PhysicsServer3DManager**
  2712. The :ref:`PhysicsServer3DManager<class_PhysicsServer3DManager>` singleton.
  2713. .. rst-class:: classref-item-separator
  2714. ----
  2715. .. _class_@GlobalScope_property_ProjectSettings:
  2716. .. rst-class:: classref-property
  2717. :ref:`ProjectSettings<class_ProjectSettings>` **ProjectSettings**
  2718. The :ref:`ProjectSettings<class_ProjectSettings>` singleton.
  2719. .. rst-class:: classref-item-separator
  2720. ----
  2721. .. _class_@GlobalScope_property_RenderingServer:
  2722. .. rst-class:: classref-property
  2723. :ref:`RenderingServer<class_RenderingServer>` **RenderingServer**
  2724. The :ref:`RenderingServer<class_RenderingServer>` singleton.
  2725. .. rst-class:: classref-item-separator
  2726. ----
  2727. .. _class_@GlobalScope_property_ResourceLoader:
  2728. .. rst-class:: classref-property
  2729. :ref:`ResourceLoader<class_ResourceLoader>` **ResourceLoader**
  2730. The :ref:`ResourceLoader<class_ResourceLoader>` singleton.
  2731. .. rst-class:: classref-item-separator
  2732. ----
  2733. .. _class_@GlobalScope_property_ResourceSaver:
  2734. .. rst-class:: classref-property
  2735. :ref:`ResourceSaver<class_ResourceSaver>` **ResourceSaver**
  2736. The :ref:`ResourceSaver<class_ResourceSaver>` singleton.
  2737. .. rst-class:: classref-item-separator
  2738. ----
  2739. .. _class_@GlobalScope_property_ResourceUID:
  2740. .. rst-class:: classref-property
  2741. :ref:`ResourceUID<class_ResourceUID>` **ResourceUID**
  2742. The :ref:`ResourceUID<class_ResourceUID>` singleton.
  2743. .. rst-class:: classref-item-separator
  2744. ----
  2745. .. _class_@GlobalScope_property_TextServerManager:
  2746. .. rst-class:: classref-property
  2747. :ref:`TextServerManager<class_TextServerManager>` **TextServerManager**
  2748. The :ref:`TextServerManager<class_TextServerManager>` singleton.
  2749. .. rst-class:: classref-item-separator
  2750. ----
  2751. .. _class_@GlobalScope_property_ThemeDB:
  2752. .. rst-class:: classref-property
  2753. :ref:`ThemeDB<class_ThemeDB>` **ThemeDB**
  2754. The :ref:`ThemeDB<class_ThemeDB>` singleton.
  2755. .. rst-class:: classref-item-separator
  2756. ----
  2757. .. _class_@GlobalScope_property_Time:
  2758. .. rst-class:: classref-property
  2759. :ref:`Time<class_Time>` **Time**
  2760. The :ref:`Time<class_Time>` singleton.
  2761. .. rst-class:: classref-item-separator
  2762. ----
  2763. .. _class_@GlobalScope_property_TranslationServer:
  2764. .. rst-class:: classref-property
  2765. :ref:`TranslationServer<class_TranslationServer>` **TranslationServer**
  2766. The :ref:`TranslationServer<class_TranslationServer>` singleton.
  2767. .. rst-class:: classref-item-separator
  2768. ----
  2769. .. _class_@GlobalScope_property_WorkerThreadPool:
  2770. .. rst-class:: classref-property
  2771. :ref:`WorkerThreadPool<class_WorkerThreadPool>` **WorkerThreadPool**
  2772. The :ref:`WorkerThreadPool<class_WorkerThreadPool>` singleton.
  2773. .. rst-class:: classref-item-separator
  2774. ----
  2775. .. _class_@GlobalScope_property_XRServer:
  2776. .. rst-class:: classref-property
  2777. :ref:`XRServer<class_XRServer>` **XRServer**
  2778. The :ref:`XRServer<class_XRServer>` singleton.
  2779. .. rst-class:: classref-section-separator
  2780. ----
  2781. .. rst-class:: classref-descriptions-group
  2782. Method Descriptions
  2783. -------------------
  2784. .. _class_@GlobalScope_method_abs:
  2785. .. rst-class:: classref-method
  2786. :ref:`Variant<class_Variant>` **abs**\ (\ x\: :ref:`Variant<class_Variant>`\ )
  2787. Returns the absolute value of a :ref:`Variant<class_Variant>` parameter ``x`` (i.e. non-negative value). Supported types: :ref:`int<class_int>`, :ref:`float<class_float>`, :ref:`Vector2<class_Vector2>`, :ref:`Vector2i<class_Vector2i>`, :ref:`Vector3<class_Vector3>`, :ref:`Vector3i<class_Vector3i>`, :ref:`Vector4<class_Vector4>`, :ref:`Vector4i<class_Vector4i>`.
  2788. ::
  2789. var a = abs(-1)
  2790. # a is 1
  2791. var b = abs(-1.2)
  2792. # b is 1.2
  2793. var c = abs(Vector2(-3.5, -4))
  2794. # c is (3.5, 4)
  2795. var d = abs(Vector2i(-5, -6))
  2796. # d is (5, 6)
  2797. var e = abs(Vector3(-7, 8.5, -3.8))
  2798. # e is (7, 8.5, 3.8)
  2799. var f = abs(Vector3i(-7, -8, -9))
  2800. # f is (7, 8, 9)
  2801. \ **Note:** For better type safety, use :ref:`absf<class_@GlobalScope_method_absf>`, :ref:`absi<class_@GlobalScope_method_absi>`, :ref:`Vector2.abs<class_Vector2_method_abs>`, :ref:`Vector2i.abs<class_Vector2i_method_abs>`, :ref:`Vector3.abs<class_Vector3_method_abs>`, :ref:`Vector3i.abs<class_Vector3i_method_abs>`, :ref:`Vector4.abs<class_Vector4_method_abs>`, or :ref:`Vector4i.abs<class_Vector4i_method_abs>`.
  2802. .. rst-class:: classref-item-separator
  2803. ----
  2804. .. _class_@GlobalScope_method_absf:
  2805. .. rst-class:: classref-method
  2806. :ref:`float<class_float>` **absf**\ (\ x\: :ref:`float<class_float>`\ )
  2807. Returns the absolute value of float parameter ``x`` (i.e. positive value).
  2808. ::
  2809. # a is 1.2
  2810. var a = absf(-1.2)
  2811. .. rst-class:: classref-item-separator
  2812. ----
  2813. .. _class_@GlobalScope_method_absi:
  2814. .. rst-class:: classref-method
  2815. :ref:`int<class_int>` **absi**\ (\ x\: :ref:`int<class_int>`\ )
  2816. Returns the absolute value of int parameter ``x`` (i.e. positive value).
  2817. ::
  2818. # a is 1
  2819. var a = absi(-1)
  2820. .. rst-class:: classref-item-separator
  2821. ----
  2822. .. _class_@GlobalScope_method_acos:
  2823. .. rst-class:: classref-method
  2824. :ref:`float<class_float>` **acos**\ (\ x\: :ref:`float<class_float>`\ )
  2825. Returns the arc cosine of ``x`` in radians. Use to get the angle of cosine ``x``. ``x`` will be clamped between ``-1.0`` and ``1.0`` (inclusive), in order to prevent :ref:`acos<class_@GlobalScope_method_acos>` from returning :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`.
  2826. ::
  2827. # c is 0.523599 or 30 degrees if converted with rad_to_deg(c)
  2828. var c = acos(0.866025)
  2829. .. rst-class:: classref-item-separator
  2830. ----
  2831. .. _class_@GlobalScope_method_acosh:
  2832. .. rst-class:: classref-method
  2833. :ref:`float<class_float>` **acosh**\ (\ x\: :ref:`float<class_float>`\ )
  2834. Returns the hyperbolic arc (also called inverse) cosine of ``x``, returning a value in radians. Use it to get the angle from an angle's cosine in hyperbolic space if ``x`` is larger or equal to 1. For values of ``x`` lower than 1, it will return 0, in order to prevent :ref:`acosh<class_@GlobalScope_method_acosh>` from returning :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`.
  2835. ::
  2836. var a = acosh(2) # Returns 1.31695789692482
  2837. cosh(a) # Returns 2
  2838. var b = acosh(-1) # Returns 0
  2839. .. rst-class:: classref-item-separator
  2840. ----
  2841. .. _class_@GlobalScope_method_angle_difference:
  2842. .. rst-class:: classref-method
  2843. :ref:`float<class_float>` **angle_difference**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`\ )
  2844. Returns the difference between the two angles, in the range of ``[-PI, +PI]``. When ``from`` and ``to`` are opposite, returns ``-PI`` if ``from`` is smaller than ``to``, or ``PI`` otherwise.
  2845. .. rst-class:: classref-item-separator
  2846. ----
  2847. .. _class_@GlobalScope_method_asin:
  2848. .. rst-class:: classref-method
  2849. :ref:`float<class_float>` **asin**\ (\ x\: :ref:`float<class_float>`\ )
  2850. Returns the arc sine of ``x`` in radians. Use to get the angle of sine ``x``. ``x`` will be clamped between ``-1.0`` and ``1.0`` (inclusive), in order to prevent :ref:`asin<class_@GlobalScope_method_asin>` from returning :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`.
  2851. ::
  2852. # s is 0.523599 or 30 degrees if converted with rad_to_deg(s)
  2853. var s = asin(0.5)
  2854. .. rst-class:: classref-item-separator
  2855. ----
  2856. .. _class_@GlobalScope_method_asinh:
  2857. .. rst-class:: classref-method
  2858. :ref:`float<class_float>` **asinh**\ (\ x\: :ref:`float<class_float>`\ )
  2859. Returns the hyperbolic arc (also called inverse) sine of ``x``, returning a value in radians. Use it to get the angle from an angle's sine in hyperbolic space.
  2860. ::
  2861. var a = asinh(0.9) # Returns 0.8088669356527824
  2862. sinh(a) # Returns 0.9
  2863. .. rst-class:: classref-item-separator
  2864. ----
  2865. .. _class_@GlobalScope_method_atan:
  2866. .. rst-class:: classref-method
  2867. :ref:`float<class_float>` **atan**\ (\ x\: :ref:`float<class_float>`\ )
  2868. Returns the arc tangent of ``x`` in radians. Use it to get the angle from an angle's tangent in trigonometry.
  2869. The method cannot know in which quadrant the angle should fall. See :ref:`atan2<class_@GlobalScope_method_atan2>` if you have both ``y`` and ``x``.
  2870. ::
  2871. var a = atan(0.5) # a is 0.463648
  2872. If ``x`` is between ``-PI / 2`` and ``PI / 2`` (inclusive), ``atan(tan(x))`` is equal to ``x``.
  2873. .. rst-class:: classref-item-separator
  2874. ----
  2875. .. _class_@GlobalScope_method_atan2:
  2876. .. rst-class:: classref-method
  2877. :ref:`float<class_float>` **atan2**\ (\ y\: :ref:`float<class_float>`, x\: :ref:`float<class_float>`\ )
  2878. Returns the arc tangent of ``y/x`` in radians. Use to get the angle of tangent ``y/x``. To compute the value, the method takes into account the sign of both arguments in order to determine the quadrant.
  2879. Important note: The Y coordinate comes first, by convention.
  2880. ::
  2881. var a = atan2(0, -1) # a is 3.141593
  2882. .. rst-class:: classref-item-separator
  2883. ----
  2884. .. _class_@GlobalScope_method_atanh:
  2885. .. rst-class:: classref-method
  2886. :ref:`float<class_float>` **atanh**\ (\ x\: :ref:`float<class_float>`\ )
  2887. Returns the hyperbolic arc (also called inverse) tangent of ``x``, returning a value in radians. Use it to get the angle from an angle's tangent in hyperbolic space if ``x`` is between -1 and 1 (non-inclusive).
  2888. In mathematics, the inverse hyperbolic tangent is only defined for -1 < ``x`` < 1 in the real set, so values equal or lower to -1 for ``x`` return negative :ref:`@GDScript.INF<class_@GDScript_constant_INF>` and values equal or higher than 1 return positive :ref:`@GDScript.INF<class_@GDScript_constant_INF>` in order to prevent :ref:`atanh<class_@GlobalScope_method_atanh>` from returning :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`.
  2889. ::
  2890. var a = atanh(0.9) # Returns 1.47221948958322
  2891. tanh(a) # Returns 0.9
  2892. var b = atanh(-2) # Returns -inf
  2893. tanh(b) # Returns -1
  2894. .. rst-class:: classref-item-separator
  2895. ----
  2896. .. _class_@GlobalScope_method_bezier_derivative:
  2897. .. rst-class:: classref-method
  2898. :ref:`float<class_float>` **bezier_derivative**\ (\ start\: :ref:`float<class_float>`, control_1\: :ref:`float<class_float>`, control_2\: :ref:`float<class_float>`, end\: :ref:`float<class_float>`, t\: :ref:`float<class_float>`\ )
  2899. Returns the derivative at the given ``t`` on a one-dimensional `Bézier curve <https://en.wikipedia.org/wiki/B%C3%A9zier_curve>`__ defined by the given ``control_1``, ``control_2``, and ``end`` points.
  2900. .. rst-class:: classref-item-separator
  2901. ----
  2902. .. _class_@GlobalScope_method_bezier_interpolate:
  2903. .. rst-class:: classref-method
  2904. :ref:`float<class_float>` **bezier_interpolate**\ (\ start\: :ref:`float<class_float>`, control_1\: :ref:`float<class_float>`, control_2\: :ref:`float<class_float>`, end\: :ref:`float<class_float>`, t\: :ref:`float<class_float>`\ )
  2905. Returns the point at the given ``t`` on a one-dimensional `Bézier curve <https://en.wikipedia.org/wiki/B%C3%A9zier_curve>`__ defined by the given ``control_1``, ``control_2``, and ``end`` points.
  2906. .. rst-class:: classref-item-separator
  2907. ----
  2908. .. _class_@GlobalScope_method_bytes_to_var:
  2909. .. rst-class:: classref-method
  2910. :ref:`Variant<class_Variant>` **bytes_to_var**\ (\ bytes\: :ref:`PackedByteArray<class_PackedByteArray>`\ )
  2911. Decodes a byte array back to a :ref:`Variant<class_Variant>` value, without decoding objects.
  2912. \ **Note:** If you need object deserialization, see :ref:`bytes_to_var_with_objects<class_@GlobalScope_method_bytes_to_var_with_objects>`.
  2913. .. rst-class:: classref-item-separator
  2914. ----
  2915. .. _class_@GlobalScope_method_bytes_to_var_with_objects:
  2916. .. rst-class:: classref-method
  2917. :ref:`Variant<class_Variant>` **bytes_to_var_with_objects**\ (\ bytes\: :ref:`PackedByteArray<class_PackedByteArray>`\ )
  2918. Decodes a byte array back to a :ref:`Variant<class_Variant>` value. Decoding objects is allowed.
  2919. \ **Warning:** Deserialized object can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats (remote code execution).
  2920. .. rst-class:: classref-item-separator
  2921. ----
  2922. .. _class_@GlobalScope_method_ceil:
  2923. .. rst-class:: classref-method
  2924. :ref:`Variant<class_Variant>` **ceil**\ (\ x\: :ref:`Variant<class_Variant>`\ )
  2925. Rounds ``x`` upward (towards positive infinity), returning the smallest whole number that is not less than ``x``. Supported types: :ref:`int<class_int>`, :ref:`float<class_float>`, :ref:`Vector2<class_Vector2>`, :ref:`Vector2i<class_Vector2i>`, :ref:`Vector3<class_Vector3>`, :ref:`Vector3i<class_Vector3i>`, :ref:`Vector4<class_Vector4>`, :ref:`Vector4i<class_Vector4i>`.
  2926. ::
  2927. var i = ceil(1.45) # i is 2.0
  2928. i = ceil(1.001) # i is 2.0
  2929. See also :ref:`floor<class_@GlobalScope_method_floor>`, :ref:`round<class_@GlobalScope_method_round>`, and :ref:`snapped<class_@GlobalScope_method_snapped>`.
  2930. \ **Note:** For better type safety, use :ref:`ceilf<class_@GlobalScope_method_ceilf>`, :ref:`ceili<class_@GlobalScope_method_ceili>`, :ref:`Vector2.ceil<class_Vector2_method_ceil>`, :ref:`Vector3.ceil<class_Vector3_method_ceil>`, or :ref:`Vector4.ceil<class_Vector4_method_ceil>`.
  2931. .. rst-class:: classref-item-separator
  2932. ----
  2933. .. _class_@GlobalScope_method_ceilf:
  2934. .. rst-class:: classref-method
  2935. :ref:`float<class_float>` **ceilf**\ (\ x\: :ref:`float<class_float>`\ )
  2936. Rounds ``x`` upward (towards positive infinity), returning the smallest whole number that is not less than ``x``.
  2937. A type-safe version of :ref:`ceil<class_@GlobalScope_method_ceil>`, returning a :ref:`float<class_float>`.
  2938. .. rst-class:: classref-item-separator
  2939. ----
  2940. .. _class_@GlobalScope_method_ceili:
  2941. .. rst-class:: classref-method
  2942. :ref:`int<class_int>` **ceili**\ (\ x\: :ref:`float<class_float>`\ )
  2943. Rounds ``x`` upward (towards positive infinity), returning the smallest whole number that is not less than ``x``.
  2944. A type-safe version of :ref:`ceil<class_@GlobalScope_method_ceil>`, returning an :ref:`int<class_int>`.
  2945. .. rst-class:: classref-item-separator
  2946. ----
  2947. .. _class_@GlobalScope_method_clamp:
  2948. .. rst-class:: classref-method
  2949. :ref:`Variant<class_Variant>` **clamp**\ (\ value\: :ref:`Variant<class_Variant>`, min\: :ref:`Variant<class_Variant>`, max\: :ref:`Variant<class_Variant>`\ )
  2950. Clamps the ``value``, returning a :ref:`Variant<class_Variant>` not less than ``min`` and not more than ``max``. Any values that can be compared with the less than and greater than operators will work.
  2951. ::
  2952. var a = clamp(-10, -1, 5)
  2953. # a is -1
  2954. var b = clamp(8.1, 0.9, 5.5)
  2955. # b is 5.5
  2956. \ **Note:** For better type safety, use :ref:`clampf<class_@GlobalScope_method_clampf>`, :ref:`clampi<class_@GlobalScope_method_clampi>`, :ref:`Vector2.clamp<class_Vector2_method_clamp>`, :ref:`Vector2i.clamp<class_Vector2i_method_clamp>`, :ref:`Vector3.clamp<class_Vector3_method_clamp>`, :ref:`Vector3i.clamp<class_Vector3i_method_clamp>`, :ref:`Vector4.clamp<class_Vector4_method_clamp>`, :ref:`Vector4i.clamp<class_Vector4i_method_clamp>`, or :ref:`Color.clamp<class_Color_method_clamp>` (not currently supported by this method).
  2957. \ **Note:** When using this on vectors it will *not* perform component-wise clamping, and will pick ``min`` if ``value < min`` or ``max`` if ``value > max``. To perform component-wise clamping use the methods listed above.
  2958. .. rst-class:: classref-item-separator
  2959. ----
  2960. .. _class_@GlobalScope_method_clampf:
  2961. .. rst-class:: classref-method
  2962. :ref:`float<class_float>` **clampf**\ (\ value\: :ref:`float<class_float>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ )
  2963. Clamps the ``value``, returning a :ref:`float<class_float>` not less than ``min`` and not more than ``max``.
  2964. ::
  2965. var speed = 42.1
  2966. var a = clampf(speed, 1.0, 20.5) # a is 20.5
  2967. speed = -10.0
  2968. var b = clampf(speed, -1.0, 1.0) # b is -1.0
  2969. .. rst-class:: classref-item-separator
  2970. ----
  2971. .. _class_@GlobalScope_method_clampi:
  2972. .. rst-class:: classref-method
  2973. :ref:`int<class_int>` **clampi**\ (\ value\: :ref:`int<class_int>`, min\: :ref:`int<class_int>`, max\: :ref:`int<class_int>`\ )
  2974. Clamps the ``value``, returning an :ref:`int<class_int>` not less than ``min`` and not more than ``max``.
  2975. ::
  2976. var speed = 42
  2977. var a = clampi(speed, 1, 20) # a is 20
  2978. speed = -10
  2979. var b = clampi(speed, -1, 1) # b is -1
  2980. .. rst-class:: classref-item-separator
  2981. ----
  2982. .. _class_@GlobalScope_method_cos:
  2983. .. rst-class:: classref-method
  2984. :ref:`float<class_float>` **cos**\ (\ angle_rad\: :ref:`float<class_float>`\ )
  2985. Returns the cosine of angle ``angle_rad`` in radians.
  2986. ::
  2987. cos(PI * 2) # Returns 1.0
  2988. cos(PI) # Returns -1.0
  2989. cos(deg_to_rad(90)) # Returns 0.0
  2990. .. rst-class:: classref-item-separator
  2991. ----
  2992. .. _class_@GlobalScope_method_cosh:
  2993. .. rst-class:: classref-method
  2994. :ref:`float<class_float>` **cosh**\ (\ x\: :ref:`float<class_float>`\ )
  2995. Returns the hyperbolic cosine of ``x`` in radians.
  2996. ::
  2997. print(cosh(1)) # Prints 1.543081
  2998. .. rst-class:: classref-item-separator
  2999. ----
  3000. .. _class_@GlobalScope_method_cubic_interpolate:
  3001. .. rst-class:: classref-method
  3002. :ref:`float<class_float>` **cubic_interpolate**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, pre\: :ref:`float<class_float>`, post\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ )
  3003. Cubic interpolates between two values by the factor defined in ``weight`` with ``pre`` and ``post`` values.
  3004. .. rst-class:: classref-item-separator
  3005. ----
  3006. .. _class_@GlobalScope_method_cubic_interpolate_angle:
  3007. .. rst-class:: classref-method
  3008. :ref:`float<class_float>` **cubic_interpolate_angle**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, pre\: :ref:`float<class_float>`, post\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ )
  3009. Cubic interpolates between two rotation values with shortest path by the factor defined in ``weight`` with ``pre`` and ``post`` values. See also :ref:`lerp_angle<class_@GlobalScope_method_lerp_angle>`.
  3010. .. rst-class:: classref-item-separator
  3011. ----
  3012. .. _class_@GlobalScope_method_cubic_interpolate_angle_in_time:
  3013. .. rst-class:: classref-method
  3014. :ref:`float<class_float>` **cubic_interpolate_angle_in_time**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, pre\: :ref:`float<class_float>`, post\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`, to_t\: :ref:`float<class_float>`, pre_t\: :ref:`float<class_float>`, post_t\: :ref:`float<class_float>`\ )
  3015. Cubic interpolates between two rotation values with shortest path by the factor defined in ``weight`` with ``pre`` and ``post`` values. See also :ref:`lerp_angle<class_@GlobalScope_method_lerp_angle>`.
  3016. It can perform smoother interpolation than :ref:`cubic_interpolate<class_@GlobalScope_method_cubic_interpolate>` by the time values.
  3017. .. rst-class:: classref-item-separator
  3018. ----
  3019. .. _class_@GlobalScope_method_cubic_interpolate_in_time:
  3020. .. rst-class:: classref-method
  3021. :ref:`float<class_float>` **cubic_interpolate_in_time**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, pre\: :ref:`float<class_float>`, post\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`, to_t\: :ref:`float<class_float>`, pre_t\: :ref:`float<class_float>`, post_t\: :ref:`float<class_float>`\ )
  3022. Cubic interpolates between two values by the factor defined in ``weight`` with ``pre`` and ``post`` values.
  3023. It can perform smoother interpolation than :ref:`cubic_interpolate<class_@GlobalScope_method_cubic_interpolate>` by the time values.
  3024. .. rst-class:: classref-item-separator
  3025. ----
  3026. .. _class_@GlobalScope_method_db_to_linear:
  3027. .. rst-class:: classref-method
  3028. :ref:`float<class_float>` **db_to_linear**\ (\ db\: :ref:`float<class_float>`\ )
  3029. Converts from decibels to linear energy (audio).
  3030. .. rst-class:: classref-item-separator
  3031. ----
  3032. .. _class_@GlobalScope_method_deg_to_rad:
  3033. .. rst-class:: classref-method
  3034. :ref:`float<class_float>` **deg_to_rad**\ (\ deg\: :ref:`float<class_float>`\ )
  3035. Converts an angle expressed in degrees to radians.
  3036. ::
  3037. var r = deg_to_rad(180) # r is 3.141593
  3038. .. rst-class:: classref-item-separator
  3039. ----
  3040. .. _class_@GlobalScope_method_ease:
  3041. .. rst-class:: classref-method
  3042. :ref:`float<class_float>` **ease**\ (\ x\: :ref:`float<class_float>`, curve\: :ref:`float<class_float>`\ )
  3043. Returns an "eased" value of ``x`` based on an easing function defined with ``curve``. This easing function is based on an exponent. The ``curve`` can be any floating-point number, with specific values leading to the following behaviors:
  3044. .. code:: text
  3045. - Lower than -1.0 (exclusive): Ease in-out
  3046. - 1.0: Linear
  3047. - Between -1.0 and 0.0 (exclusive): Ease out-in
  3048. - 0.0: Constant
  3049. - Between 0.0 to 1.0 (exclusive): Ease out
  3050. - 1.0: Linear
  3051. - Greater than 1.0 (exclusive): Ease in
  3052. \ `ease() curve values cheatsheet <https://raw.githubusercontent.com/godotengine/godot-docs/master/img/ease_cheatsheet.png>`__\
  3053. See also :ref:`smoothstep<class_@GlobalScope_method_smoothstep>`. If you need to perform more advanced transitions, use :ref:`Tween.interpolate_value<class_Tween_method_interpolate_value>`.
  3054. .. rst-class:: classref-item-separator
  3055. ----
  3056. .. _class_@GlobalScope_method_error_string:
  3057. .. rst-class:: classref-method
  3058. :ref:`String<class_String>` **error_string**\ (\ error\: :ref:`int<class_int>`\ )
  3059. Returns a human-readable name for the given :ref:`Error<enum_@GlobalScope_Error>` code.
  3060. ::
  3061. print(OK) # Prints 0
  3062. print(error_string(OK)) # Prints OK
  3063. print(error_string(ERR_BUSY)) # Prints Busy
  3064. print(error_string(ERR_OUT_OF_MEMORY)) # Prints Out of memory
  3065. .. rst-class:: classref-item-separator
  3066. ----
  3067. .. _class_@GlobalScope_method_exp:
  3068. .. rst-class:: classref-method
  3069. :ref:`float<class_float>` **exp**\ (\ x\: :ref:`float<class_float>`\ )
  3070. The natural exponential function. It raises the mathematical constant *e* to the power of ``x`` and returns it.
  3071. \ *e* has an approximate value of 2.71828, and can be obtained with ``exp(1)``.
  3072. For exponents to other bases use the method :ref:`pow<class_@GlobalScope_method_pow>`.
  3073. ::
  3074. var a = exp(2) # Approximately 7.39
  3075. .. rst-class:: classref-item-separator
  3076. ----
  3077. .. _class_@GlobalScope_method_floor:
  3078. .. rst-class:: classref-method
  3079. :ref:`Variant<class_Variant>` **floor**\ (\ x\: :ref:`Variant<class_Variant>`\ )
  3080. Rounds ``x`` downward (towards negative infinity), returning the largest whole number that is not more than ``x``. Supported types: :ref:`int<class_int>`, :ref:`float<class_float>`, :ref:`Vector2<class_Vector2>`, :ref:`Vector2i<class_Vector2i>`, :ref:`Vector3<class_Vector3>`, :ref:`Vector3i<class_Vector3i>`, :ref:`Vector4<class_Vector4>`, :ref:`Vector4i<class_Vector4i>`.
  3081. ::
  3082. var a = floor(2.99) # a is 2.0
  3083. a = floor(-2.99) # a is -3.0
  3084. See also :ref:`ceil<class_@GlobalScope_method_ceil>`, :ref:`round<class_@GlobalScope_method_round>`, and :ref:`snapped<class_@GlobalScope_method_snapped>`.
  3085. \ **Note:** For better type safety, use :ref:`floorf<class_@GlobalScope_method_floorf>`, :ref:`floori<class_@GlobalScope_method_floori>`, :ref:`Vector2.floor<class_Vector2_method_floor>`, :ref:`Vector3.floor<class_Vector3_method_floor>`, or :ref:`Vector4.floor<class_Vector4_method_floor>`.
  3086. .. rst-class:: classref-item-separator
  3087. ----
  3088. .. _class_@GlobalScope_method_floorf:
  3089. .. rst-class:: classref-method
  3090. :ref:`float<class_float>` **floorf**\ (\ x\: :ref:`float<class_float>`\ )
  3091. Rounds ``x`` downward (towards negative infinity), returning the largest whole number that is not more than ``x``.
  3092. A type-safe version of :ref:`floor<class_@GlobalScope_method_floor>`, returning a :ref:`float<class_float>`.
  3093. .. rst-class:: classref-item-separator
  3094. ----
  3095. .. _class_@GlobalScope_method_floori:
  3096. .. rst-class:: classref-method
  3097. :ref:`int<class_int>` **floori**\ (\ x\: :ref:`float<class_float>`\ )
  3098. Rounds ``x`` downward (towards negative infinity), returning the largest whole number that is not more than ``x``.
  3099. A type-safe version of :ref:`floor<class_@GlobalScope_method_floor>`, returning an :ref:`int<class_int>`.
  3100. \ **Note:** This function is *not* the same as ``int(x)``, which rounds towards 0.
  3101. .. rst-class:: classref-item-separator
  3102. ----
  3103. .. _class_@GlobalScope_method_fmod:
  3104. .. rst-class:: classref-method
  3105. :ref:`float<class_float>` **fmod**\ (\ x\: :ref:`float<class_float>`, y\: :ref:`float<class_float>`\ )
  3106. Returns the floating-point remainder of ``x`` divided by ``y``, keeping the sign of ``x``.
  3107. ::
  3108. var remainder = fmod(7, 5.5) # remainder is 1.5
  3109. For the integer remainder operation, use the ``%`` operator.
  3110. .. rst-class:: classref-item-separator
  3111. ----
  3112. .. _class_@GlobalScope_method_fposmod:
  3113. .. rst-class:: classref-method
  3114. :ref:`float<class_float>` **fposmod**\ (\ x\: :ref:`float<class_float>`, y\: :ref:`float<class_float>`\ )
  3115. Returns the floating-point modulus of ``x`` divided by ``y``, wrapping equally in positive and negative.
  3116. ::
  3117. print(" (x) (fmod(x, 1.5)) (fposmod(x, 1.5))")
  3118. for i in 7:
  3119. var x = i * 0.5 - 1.5
  3120. print("%4.1f %4.1f | %4.1f" % [x, fmod(x, 1.5), fposmod(x, 1.5)])
  3121. Prints:
  3122. .. code:: text
  3123. (x) (fmod(x, 1.5)) (fposmod(x, 1.5))
  3124. -1.5 -0.0 | 0.0
  3125. -1.0 -1.0 | 0.5
  3126. -0.5 -0.5 | 1.0
  3127. 0.0 0.0 | 0.0
  3128. 0.5 0.5 | 0.5
  3129. 1.0 1.0 | 1.0
  3130. 1.5 0.0 | 0.0
  3131. .. rst-class:: classref-item-separator
  3132. ----
  3133. .. _class_@GlobalScope_method_hash:
  3134. .. rst-class:: classref-method
  3135. :ref:`int<class_int>` **hash**\ (\ variable\: :ref:`Variant<class_Variant>`\ )
  3136. Returns the integer hash of the passed ``variable``.
  3137. .. tabs::
  3138. .. code-tab:: gdscript
  3139. print(hash("a")) # Prints 177670
  3140. .. code-tab:: csharp
  3141. GD.Print(GD.Hash("a")); // Prints 177670
  3142. .. rst-class:: classref-item-separator
  3143. ----
  3144. .. _class_@GlobalScope_method_instance_from_id:
  3145. .. rst-class:: classref-method
  3146. :ref:`Object<class_Object>` **instance_from_id**\ (\ instance_id\: :ref:`int<class_int>`\ )
  3147. Returns the :ref:`Object<class_Object>` that corresponds to ``instance_id``. All Objects have a unique instance ID. See also :ref:`Object.get_instance_id<class_Object_method_get_instance_id>`.
  3148. .. tabs::
  3149. .. code-tab:: gdscript
  3150. var foo = "bar"
  3151. func _ready():
  3152. var id = get_instance_id()
  3153. var inst = instance_from_id(id)
  3154. print(inst.foo) # Prints bar
  3155. .. code-tab:: csharp
  3156. public partial class MyNode : Node
  3157. {
  3158. public string Foo { get; set; } = "bar";
  3159. public override void _Ready()
  3160. {
  3161. ulong id = GetInstanceId();
  3162. var inst = (MyNode)InstanceFromId(Id);
  3163. GD.Print(inst.Foo); // Prints bar
  3164. }
  3165. }
  3166. .. rst-class:: classref-item-separator
  3167. ----
  3168. .. _class_@GlobalScope_method_inverse_lerp:
  3169. .. rst-class:: classref-method
  3170. :ref:`float<class_float>` **inverse_lerp**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ )
  3171. Returns an interpolation or extrapolation factor considering the range specified in ``from`` and ``to``, and the interpolated value specified in ``weight``. The returned value will be between ``0.0`` and ``1.0`` if ``weight`` is between ``from`` and ``to`` (inclusive). If ``weight`` is located outside this range, then an extrapolation factor will be returned (return value lower than ``0.0`` or greater than ``1.0``). Use :ref:`clamp<class_@GlobalScope_method_clamp>` on the result of :ref:`inverse_lerp<class_@GlobalScope_method_inverse_lerp>` if this is not desired.
  3172. ::
  3173. # The interpolation ratio in the `lerp()` call below is 0.75.
  3174. var middle = lerp(20, 30, 0.75)
  3175. # middle is now 27.5.
  3176. # Now, we pretend to have forgotten the original ratio and want to get it back.
  3177. var ratio = inverse_lerp(20, 30, 27.5)
  3178. # ratio is now 0.75.
  3179. See also :ref:`lerp<class_@GlobalScope_method_lerp>`, which performs the reverse of this operation, and :ref:`remap<class_@GlobalScope_method_remap>` to map a continuous series of values to another.
  3180. .. rst-class:: classref-item-separator
  3181. ----
  3182. .. _class_@GlobalScope_method_is_equal_approx:
  3183. .. rst-class:: classref-method
  3184. :ref:`bool<class_bool>` **is_equal_approx**\ (\ a\: :ref:`float<class_float>`, b\: :ref:`float<class_float>`\ )
  3185. Returns ``true`` if ``a`` and ``b`` are approximately equal to each other.
  3186. Here, "approximately equal" means that ``a`` and ``b`` are within a small internal epsilon of each other, which scales with the magnitude of the numbers.
  3187. Infinity values of the same sign are considered equal.
  3188. .. rst-class:: classref-item-separator
  3189. ----
  3190. .. _class_@GlobalScope_method_is_finite:
  3191. .. rst-class:: classref-method
  3192. :ref:`bool<class_bool>` **is_finite**\ (\ x\: :ref:`float<class_float>`\ )
  3193. Returns whether ``x`` is a finite value, i.e. it is not :ref:`@GDScript.NAN<class_@GDScript_constant_NAN>`, positive infinity, or negative infinity.
  3194. .. rst-class:: classref-item-separator
  3195. ----
  3196. .. _class_@GlobalScope_method_is_inf:
  3197. .. rst-class:: classref-method
  3198. :ref:`bool<class_bool>` **is_inf**\ (\ x\: :ref:`float<class_float>`\ )
  3199. Returns ``true`` if ``x`` is either positive infinity or negative infinity.
  3200. .. rst-class:: classref-item-separator
  3201. ----
  3202. .. _class_@GlobalScope_method_is_instance_id_valid:
  3203. .. rst-class:: classref-method
  3204. :ref:`bool<class_bool>` **is_instance_id_valid**\ (\ id\: :ref:`int<class_int>`\ )
  3205. Returns ``true`` if the Object that corresponds to ``id`` is a valid object (e.g. has not been deleted from memory). All Objects have a unique instance ID.
  3206. .. rst-class:: classref-item-separator
  3207. ----
  3208. .. _class_@GlobalScope_method_is_instance_valid:
  3209. .. rst-class:: classref-method
  3210. :ref:`bool<class_bool>` **is_instance_valid**\ (\ instance\: :ref:`Variant<class_Variant>`\ )
  3211. Returns ``true`` if ``instance`` is a valid Object (e.g. has not been deleted from memory).
  3212. .. rst-class:: classref-item-separator
  3213. ----
  3214. .. _class_@GlobalScope_method_is_nan:
  3215. .. rst-class:: classref-method
  3216. :ref:`bool<class_bool>` **is_nan**\ (\ x\: :ref:`float<class_float>`\ )
  3217. Returns ``true`` if ``x`` is a NaN ("Not a Number" or invalid) value.
  3218. .. rst-class:: classref-item-separator
  3219. ----
  3220. .. _class_@GlobalScope_method_is_same:
  3221. .. rst-class:: classref-method
  3222. :ref:`bool<class_bool>` **is_same**\ (\ a\: :ref:`Variant<class_Variant>`, b\: :ref:`Variant<class_Variant>`\ )
  3223. Returns ``true``, for value types, if ``a`` and ``b`` share the same value. Returns ``true``, for reference types, if the references of ``a`` and ``b`` are the same.
  3224. ::
  3225. # Vector2 is a value type
  3226. var vec2_a = Vector2(0, 0)
  3227. var vec2_b = Vector2(0, 0)
  3228. var vec2_c = Vector2(1, 1)
  3229. is_same(vec2_a, vec2_a) # true
  3230. is_same(vec2_a, vec2_b) # true
  3231. is_same(vec2_a, vec2_c) # false
  3232. # Array is a reference type
  3233. var arr_a = []
  3234. var arr_b = []
  3235. is_same(arr_a, arr_a) # true
  3236. is_same(arr_a, arr_b) # false
  3237. These are :ref:`Variant<class_Variant>` value types: ``null``, :ref:`bool<class_bool>`, :ref:`int<class_int>`, :ref:`float<class_float>`, :ref:`String<class_String>`, :ref:`StringName<class_StringName>`, :ref:`Vector2<class_Vector2>`, :ref:`Vector2i<class_Vector2i>`, :ref:`Vector3<class_Vector3>`, :ref:`Vector3i<class_Vector3i>`, :ref:`Vector4<class_Vector4>`, :ref:`Vector4i<class_Vector4i>`, :ref:`Rect2<class_Rect2>`, :ref:`Rect2i<class_Rect2i>`, :ref:`Transform2D<class_Transform2D>`, :ref:`Transform3D<class_Transform3D>`, :ref:`Plane<class_Plane>`, :ref:`Quaternion<class_Quaternion>`, :ref:`AABB<class_AABB>`, :ref:`Basis<class_Basis>`, :ref:`Projection<class_Projection>`, :ref:`Color<class_Color>`, :ref:`NodePath<class_NodePath>`, :ref:`RID<class_RID>`, :ref:`Callable<class_Callable>` and :ref:`Signal<class_Signal>`.
  3238. These are :ref:`Variant<class_Variant>` reference types: :ref:`Object<class_Object>`, :ref:`Dictionary<class_Dictionary>`, :ref:`Array<class_Array>`, :ref:`PackedByteArray<class_PackedByteArray>`, :ref:`PackedInt32Array<class_PackedInt32Array>`, :ref:`PackedInt64Array<class_PackedInt64Array>`, :ref:`PackedFloat32Array<class_PackedFloat32Array>`, :ref:`PackedFloat64Array<class_PackedFloat64Array>`, :ref:`PackedStringArray<class_PackedStringArray>`, :ref:`PackedVector2Array<class_PackedVector2Array>`, :ref:`PackedVector3Array<class_PackedVector3Array>`, :ref:`PackedVector4Array<class_PackedVector4Array>`, and :ref:`PackedColorArray<class_PackedColorArray>`.
  3239. .. rst-class:: classref-item-separator
  3240. ----
  3241. .. _class_@GlobalScope_method_is_zero_approx:
  3242. .. rst-class:: classref-method
  3243. :ref:`bool<class_bool>` **is_zero_approx**\ (\ x\: :ref:`float<class_float>`\ )
  3244. Returns ``true`` if ``x`` is zero or almost zero. The comparison is done using a tolerance calculation with a small internal epsilon.
  3245. This function is faster than using :ref:`is_equal_approx<class_@GlobalScope_method_is_equal_approx>` with one value as zero.
  3246. .. rst-class:: classref-item-separator
  3247. ----
  3248. .. _class_@GlobalScope_method_lerp:
  3249. .. rst-class:: classref-method
  3250. :ref:`Variant<class_Variant>` **lerp**\ (\ from\: :ref:`Variant<class_Variant>`, to\: :ref:`Variant<class_Variant>`, weight\: :ref:`Variant<class_Variant>`\ )
  3251. Linearly interpolates between two values by the factor defined in ``weight``. To perform interpolation, ``weight`` should be between ``0.0`` and ``1.0`` (inclusive). However, values outside this range are allowed and can be used to perform *extrapolation*. If this is not desired, use :ref:`clamp<class_@GlobalScope_method_clamp>` on the result of this function.
  3252. Both ``from`` and ``to`` must be the same type. Supported types: :ref:`int<class_int>`, :ref:`float<class_float>`, :ref:`Vector2<class_Vector2>`, :ref:`Vector3<class_Vector3>`, :ref:`Vector4<class_Vector4>`, :ref:`Color<class_Color>`, :ref:`Quaternion<class_Quaternion>`, :ref:`Basis<class_Basis>`.
  3253. ::
  3254. lerp(0, 4, 0.75) # Returns 3.0
  3255. See also :ref:`inverse_lerp<class_@GlobalScope_method_inverse_lerp>` which performs the reverse of this operation. To perform eased interpolation with :ref:`lerp<class_@GlobalScope_method_lerp>`, combine it with :ref:`ease<class_@GlobalScope_method_ease>` or :ref:`smoothstep<class_@GlobalScope_method_smoothstep>`. See also :ref:`remap<class_@GlobalScope_method_remap>` to map a continuous series of values to another.
  3256. \ **Note:** For better type safety, use :ref:`lerpf<class_@GlobalScope_method_lerpf>`, :ref:`Vector2.lerp<class_Vector2_method_lerp>`, :ref:`Vector3.lerp<class_Vector3_method_lerp>`, :ref:`Vector4.lerp<class_Vector4_method_lerp>`, :ref:`Color.lerp<class_Color_method_lerp>`, :ref:`Quaternion.slerp<class_Quaternion_method_slerp>` or :ref:`Basis.slerp<class_Basis_method_slerp>`.
  3257. .. rst-class:: classref-item-separator
  3258. ----
  3259. .. _class_@GlobalScope_method_lerp_angle:
  3260. .. rst-class:: classref-method
  3261. :ref:`float<class_float>` **lerp_angle**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ )
  3262. Linearly interpolates between two angles (in radians) by a ``weight`` value between 0.0 and 1.0.
  3263. Similar to :ref:`lerp<class_@GlobalScope_method_lerp>`, but interpolates correctly when the angles wrap around :ref:`@GDScript.TAU<class_@GDScript_constant_TAU>`. To perform eased interpolation with :ref:`lerp_angle<class_@GlobalScope_method_lerp_angle>`, combine it with :ref:`ease<class_@GlobalScope_method_ease>` or :ref:`smoothstep<class_@GlobalScope_method_smoothstep>`.
  3264. ::
  3265. extends Sprite
  3266. var elapsed = 0.0
  3267. func _process(delta):
  3268. var min_angle = deg_to_rad(0.0)
  3269. var max_angle = deg_to_rad(90.0)
  3270. rotation = lerp_angle(min_angle, max_angle, elapsed)
  3271. elapsed += delta
  3272. \ **Note:** This function lerps through the shortest path between ``from`` and ``to``. However, when these two angles are approximately ``PI + k * TAU`` apart for any integer ``k``, it's not obvious which way they lerp due to floating-point precision errors. For example, ``lerp_angle(0, PI, weight)`` lerps counter-clockwise, while ``lerp_angle(0, PI + 5 * TAU, weight)`` lerps clockwise.
  3273. .. rst-class:: classref-item-separator
  3274. ----
  3275. .. _class_@GlobalScope_method_lerpf:
  3276. .. rst-class:: classref-method
  3277. :ref:`float<class_float>` **lerpf**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, weight\: :ref:`float<class_float>`\ )
  3278. Linearly interpolates between two values by the factor defined in ``weight``. To perform interpolation, ``weight`` should be between ``0.0`` and ``1.0`` (inclusive). However, values outside this range are allowed and can be used to perform *extrapolation*. If this is not desired, use :ref:`clampf<class_@GlobalScope_method_clampf>` on the result of this function.
  3279. ::
  3280. lerpf(0, 4, 0.75) # Returns 3.0
  3281. See also :ref:`inverse_lerp<class_@GlobalScope_method_inverse_lerp>` which performs the reverse of this operation. To perform eased interpolation with :ref:`lerp<class_@GlobalScope_method_lerp>`, combine it with :ref:`ease<class_@GlobalScope_method_ease>` or :ref:`smoothstep<class_@GlobalScope_method_smoothstep>`.
  3282. .. rst-class:: classref-item-separator
  3283. ----
  3284. .. _class_@GlobalScope_method_linear_to_db:
  3285. .. rst-class:: classref-method
  3286. :ref:`float<class_float>` **linear_to_db**\ (\ lin\: :ref:`float<class_float>`\ )
  3287. Converts from linear energy to decibels (audio). This can be used to implement volume sliders that behave as expected (since volume isn't linear).
  3288. \ **Example:**\
  3289. ::
  3290. # "Slider" refers to a node that inherits Range such as HSlider or VSlider.
  3291. # Its range must be configured to go from 0 to 1.
  3292. # Change the bus name if you'd like to change the volume of a specific bus only.
  3293. AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Master"), linear_to_db($Slider.value))
  3294. .. rst-class:: classref-item-separator
  3295. ----
  3296. .. _class_@GlobalScope_method_log:
  3297. .. rst-class:: classref-method
  3298. :ref:`float<class_float>` **log**\ (\ x\: :ref:`float<class_float>`\ )
  3299. Returns the `natural logarithm <https://en.wikipedia.org/wiki/Natural_logarithm>`__ of ``x`` (base `[i]e[/i] <https://en.wikipedia.org/wiki/E_(mathematical_constant)>`__, with *e* being approximately 2.71828). This is the amount of time needed to reach a certain level of continuous growth.
  3300. \ **Note:** This is not the same as the "log" function on most calculators, which uses a base 10 logarithm. To use base 10 logarithm, use ``log(x) / log(10)``.
  3301. ::
  3302. log(10) # Returns 2.302585
  3303. \ **Note:** The logarithm of ``0`` returns ``-inf``, while negative values return ``-nan``.
  3304. .. rst-class:: classref-item-separator
  3305. ----
  3306. .. _class_@GlobalScope_method_max:
  3307. .. rst-class:: classref-method
  3308. :ref:`Variant<class_Variant>` **max**\ (\ ...\ ) |vararg|
  3309. Returns the maximum of the given numeric values. This function can take any number of arguments.
  3310. ::
  3311. max(1, 7, 3, -6, 5) # Returns 7
  3312. \ **Note:** When using this on vectors it will *not* perform component-wise maximum, and will pick the largest value when compared using ``x < y``. To perform component-wise maximum, use :ref:`Vector2.max<class_Vector2_method_max>`, :ref:`Vector2i.max<class_Vector2i_method_max>`, :ref:`Vector3.max<class_Vector3_method_max>`, :ref:`Vector3i.max<class_Vector3i_method_max>`, :ref:`Vector4.max<class_Vector4_method_max>`, and :ref:`Vector4i.max<class_Vector4i_method_max>`.
  3313. .. rst-class:: classref-item-separator
  3314. ----
  3315. .. _class_@GlobalScope_method_maxf:
  3316. .. rst-class:: classref-method
  3317. :ref:`float<class_float>` **maxf**\ (\ a\: :ref:`float<class_float>`, b\: :ref:`float<class_float>`\ )
  3318. Returns the maximum of two :ref:`float<class_float>` values.
  3319. ::
  3320. maxf(3.6, 24) # Returns 24.0
  3321. maxf(-3.99, -4) # Returns -3.99
  3322. .. rst-class:: classref-item-separator
  3323. ----
  3324. .. _class_@GlobalScope_method_maxi:
  3325. .. rst-class:: classref-method
  3326. :ref:`int<class_int>` **maxi**\ (\ a\: :ref:`int<class_int>`, b\: :ref:`int<class_int>`\ )
  3327. Returns the maximum of two :ref:`int<class_int>` values.
  3328. ::
  3329. maxi(1, 2) # Returns 2
  3330. maxi(-3, -4) # Returns -3
  3331. .. rst-class:: classref-item-separator
  3332. ----
  3333. .. _class_@GlobalScope_method_min:
  3334. .. rst-class:: classref-method
  3335. :ref:`Variant<class_Variant>` **min**\ (\ ...\ ) |vararg|
  3336. Returns the minimum of the given numeric values. This function can take any number of arguments.
  3337. ::
  3338. min(1, 7, 3, -6, 5) # Returns -6
  3339. \ **Note:** When using this on vectors it will *not* perform component-wise minimum, and will pick the smallest value when compared using ``x < y``. To perform component-wise minimum, use :ref:`Vector2.min<class_Vector2_method_min>`, :ref:`Vector2i.min<class_Vector2i_method_min>`, :ref:`Vector3.min<class_Vector3_method_min>`, :ref:`Vector3i.min<class_Vector3i_method_min>`, :ref:`Vector4.min<class_Vector4_method_min>`, and :ref:`Vector4i.min<class_Vector4i_method_min>`.
  3340. .. rst-class:: classref-item-separator
  3341. ----
  3342. .. _class_@GlobalScope_method_minf:
  3343. .. rst-class:: classref-method
  3344. :ref:`float<class_float>` **minf**\ (\ a\: :ref:`float<class_float>`, b\: :ref:`float<class_float>`\ )
  3345. Returns the minimum of two :ref:`float<class_float>` values.
  3346. ::
  3347. minf(3.6, 24) # Returns 3.6
  3348. minf(-3.99, -4) # Returns -4.0
  3349. .. rst-class:: classref-item-separator
  3350. ----
  3351. .. _class_@GlobalScope_method_mini:
  3352. .. rst-class:: classref-method
  3353. :ref:`int<class_int>` **mini**\ (\ a\: :ref:`int<class_int>`, b\: :ref:`int<class_int>`\ )
  3354. Returns the minimum of two :ref:`int<class_int>` values.
  3355. ::
  3356. mini(1, 2) # Returns 1
  3357. mini(-3, -4) # Returns -4
  3358. .. rst-class:: classref-item-separator
  3359. ----
  3360. .. _class_@GlobalScope_method_move_toward:
  3361. .. rst-class:: classref-method
  3362. :ref:`float<class_float>` **move_toward**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, delta\: :ref:`float<class_float>`\ )
  3363. Moves ``from`` toward ``to`` by the ``delta`` amount. Will not go past ``to``.
  3364. Use a negative ``delta`` value to move away.
  3365. ::
  3366. move_toward(5, 10, 4) # Returns 9
  3367. move_toward(10, 5, 4) # Returns 6
  3368. move_toward(5, 10, 9) # Returns 10
  3369. move_toward(10, 5, -1.5) # Returns 11.5
  3370. .. rst-class:: classref-item-separator
  3371. ----
  3372. .. _class_@GlobalScope_method_nearest_po2:
  3373. .. rst-class:: classref-method
  3374. :ref:`int<class_int>` **nearest_po2**\ (\ value\: :ref:`int<class_int>`\ )
  3375. Returns the smallest integer power of 2 that is greater than or equal to ``value``.
  3376. ::
  3377. nearest_po2(3) # Returns 4
  3378. nearest_po2(4) # Returns 4
  3379. nearest_po2(5) # Returns 8
  3380. nearest_po2(0) # Returns 0 (this may not be expected)
  3381. nearest_po2(-1) # Returns 0 (this may not be expected)
  3382. \ **Warning:** Due to its implementation, this method returns ``0`` rather than ``1`` for values less than or equal to ``0``, with an exception for ``value`` being the smallest negative 64-bit integer (``-9223372036854775808``) in which case the ``value`` is returned unchanged.
  3383. .. rst-class:: classref-item-separator
  3384. ----
  3385. .. _class_@GlobalScope_method_pingpong:
  3386. .. rst-class:: classref-method
  3387. :ref:`float<class_float>` **pingpong**\ (\ value\: :ref:`float<class_float>`, length\: :ref:`float<class_float>`\ )
  3388. Wraps ``value`` between ``0`` and the ``length``. If the limit is reached, the next value the function returns is decreased to the ``0`` side or increased to the ``length`` side (like a triangle wave). If ``length`` is less than zero, it becomes positive.
  3389. ::
  3390. pingpong(-3.0, 3.0) # Returns 3.0
  3391. pingpong(-2.0, 3.0) # Returns 2.0
  3392. pingpong(-1.0, 3.0) # Returns 1.0
  3393. pingpong(0.0, 3.0) # Returns 0.0
  3394. pingpong(1.0, 3.0) # Returns 1.0
  3395. pingpong(2.0, 3.0) # Returns 2.0
  3396. pingpong(3.0, 3.0) # Returns 3.0
  3397. pingpong(4.0, 3.0) # Returns 2.0
  3398. pingpong(5.0, 3.0) # Returns 1.0
  3399. pingpong(6.0, 3.0) # Returns 0.0
  3400. .. rst-class:: classref-item-separator
  3401. ----
  3402. .. _class_@GlobalScope_method_posmod:
  3403. .. rst-class:: classref-method
  3404. :ref:`int<class_int>` **posmod**\ (\ x\: :ref:`int<class_int>`, y\: :ref:`int<class_int>`\ )
  3405. Returns the integer modulus of ``x`` divided by ``y`` that wraps equally in positive and negative.
  3406. ::
  3407. print("#(i) (i % 3) (posmod(i, 3))")
  3408. for i in range(-3, 4):
  3409. print("%2d %2d | %2d" % [i, i % 3, posmod(i, 3)])
  3410. Prints:
  3411. .. code:: text
  3412. (i) (i % 3) (posmod(i, 3))
  3413. -3 0 | 0
  3414. -2 -2 | 1
  3415. -1 -1 | 2
  3416. 0 0 | 0
  3417. 1 1 | 1
  3418. 2 2 | 2
  3419. 3 0 | 0
  3420. .. rst-class:: classref-item-separator
  3421. ----
  3422. .. _class_@GlobalScope_method_pow:
  3423. .. rst-class:: classref-method
  3424. :ref:`float<class_float>` **pow**\ (\ base\: :ref:`float<class_float>`, exp\: :ref:`float<class_float>`\ )
  3425. Returns the result of ``base`` raised to the power of ``exp``.
  3426. In GDScript, this is the equivalent of the ``**`` operator.
  3427. ::
  3428. pow(2, 5) # Returns 32.0
  3429. pow(4, 1.5) # Returns 8.0
  3430. .. rst-class:: classref-item-separator
  3431. ----
  3432. .. _class_@GlobalScope_method_print:
  3433. .. rst-class:: classref-method
  3434. |void| **print**\ (\ ...\ ) |vararg|
  3435. Converts one or more arguments of any type to string in the best way possible and prints them to the console.
  3436. .. tabs::
  3437. .. code-tab:: gdscript
  3438. var a = [1, 2, 3]
  3439. print("a", "b", a) # Prints ab[1, 2, 3]
  3440. .. code-tab:: csharp
  3441. var a = new Godot.Collections.Array { 1, 2, 3 };
  3442. GD.Print("a", "b", a); // Prints ab[1, 2, 3]
  3443. \ **Note:** Consider using :ref:`push_error<class_@GlobalScope_method_push_error>` and :ref:`push_warning<class_@GlobalScope_method_push_warning>` to print error and warning messages instead of :ref:`print<class_@GlobalScope_method_print>` or :ref:`print_rich<class_@GlobalScope_method_print_rich>`. This distinguishes them from print messages used for debugging purposes, while also displaying a stack trace when an error or warning is printed.
  3444. .. rst-class:: classref-item-separator
  3445. ----
  3446. .. _class_@GlobalScope_method_print_rich:
  3447. .. rst-class:: classref-method
  3448. |void| **print_rich**\ (\ ...\ ) |vararg|
  3449. Converts one or more arguments of any type to string in the best way possible and prints them to the console.
  3450. The following BBCode tags are supported: ``b``, ``i``, ``u``, ``s``, ``indent``, ``code``, ``url``, ``center``, ``right``, ``color``, ``bgcolor``, ``fgcolor``.
  3451. Color tags only support the following named colors: ``black``, ``red``, ``green``, ``yellow``, ``blue``, ``magenta``, ``pink``, ``purple``, ``cyan``, ``white``, ``orange``, ``gray``. Hexadecimal color codes are not supported.
  3452. URL tags only support URLs wrapped by a URL tag, not URLs with a different title.
  3453. When printing to standard output, the supported subset of BBCode is converted to ANSI escape codes for the terminal emulator to display. Support for ANSI escape codes varies across terminal emulators, especially for italic and strikethrough. In standard output, ``code`` is represented with faint text but without any font change. Unsupported tags are left as-is in standard output.
  3454. .. tabs::
  3455. .. code-tab:: gdscript
  3456. print_rich("[color=green][b]Hello world![/b][/color]") # Prints out "Hello world!" in green with a bold font
  3457. .. code-tab:: csharp
  3458. GD.PrintRich("[color=green][b]Hello world![/b][/color]"); // Prints out "Hello world!" in green with a bold font
  3459. \ **Note:** Consider using :ref:`push_error<class_@GlobalScope_method_push_error>` and :ref:`push_warning<class_@GlobalScope_method_push_warning>` to print error and warning messages instead of :ref:`print<class_@GlobalScope_method_print>` or :ref:`print_rich<class_@GlobalScope_method_print_rich>`. This distinguishes them from print messages used for debugging purposes, while also displaying a stack trace when an error or warning is printed.
  3460. \ **Note:** On Windows, only Windows 10 and later correctly displays ANSI escape codes in standard output.
  3461. \ **Note:** Output displayed in the editor supports clickable ``[url=address]text[/url]`` tags. The ``[url]`` tag's ``address`` value is handled by :ref:`OS.shell_open<class_OS_method_shell_open>` when clicked.
  3462. .. rst-class:: classref-item-separator
  3463. ----
  3464. .. _class_@GlobalScope_method_print_verbose:
  3465. .. rst-class:: classref-method
  3466. |void| **print_verbose**\ (\ ...\ ) |vararg|
  3467. If verbose mode is enabled (:ref:`OS.is_stdout_verbose<class_OS_method_is_stdout_verbose>` returning ``true``), converts one or more arguments of any type to string in the best way possible and prints them to the console.
  3468. .. rst-class:: classref-item-separator
  3469. ----
  3470. .. _class_@GlobalScope_method_printerr:
  3471. .. rst-class:: classref-method
  3472. |void| **printerr**\ (\ ...\ ) |vararg|
  3473. Prints one or more arguments to strings in the best way possible to standard error line.
  3474. .. tabs::
  3475. .. code-tab:: gdscript
  3476. printerr("prints to stderr")
  3477. .. code-tab:: csharp
  3478. GD.PrintErr("prints to stderr");
  3479. .. rst-class:: classref-item-separator
  3480. ----
  3481. .. _class_@GlobalScope_method_printraw:
  3482. .. rst-class:: classref-method
  3483. |void| **printraw**\ (\ ...\ ) |vararg|
  3484. Prints one or more arguments to strings in the best way possible to the OS terminal. Unlike :ref:`print<class_@GlobalScope_method_print>`, no newline is automatically added at the end.
  3485. \ **Note:** The OS terminal is *not* the same as the editor's Output dock. The output sent to the OS terminal can be seen when running Godot from a terminal. On Windows, this requires using the ``console.exe`` executable.
  3486. .. tabs::
  3487. .. code-tab:: gdscript
  3488. printraw("A")
  3489. printraw("B")
  3490. printraw("C")
  3491. # Prints ABC to terminal
  3492. .. code-tab:: csharp
  3493. GD.PrintRaw("A");
  3494. GD.PrintRaw("B");
  3495. GD.PrintRaw("C");
  3496. // Prints ABC to terminal
  3497. .. rst-class:: classref-item-separator
  3498. ----
  3499. .. _class_@GlobalScope_method_prints:
  3500. .. rst-class:: classref-method
  3501. |void| **prints**\ (\ ...\ ) |vararg|
  3502. Prints one or more arguments to the console with a space between each argument.
  3503. .. tabs::
  3504. .. code-tab:: gdscript
  3505. prints("A", "B", "C") # Prints A B C
  3506. .. code-tab:: csharp
  3507. GD.PrintS("A", "B", "C"); // Prints A B C
  3508. .. rst-class:: classref-item-separator
  3509. ----
  3510. .. _class_@GlobalScope_method_printt:
  3511. .. rst-class:: classref-method
  3512. |void| **printt**\ (\ ...\ ) |vararg|
  3513. Prints one or more arguments to the console with a tab between each argument.
  3514. .. tabs::
  3515. .. code-tab:: gdscript
  3516. printt("A", "B", "C") # Prints A B C
  3517. .. code-tab:: csharp
  3518. GD.PrintT("A", "B", "C"); // Prints A B C
  3519. .. rst-class:: classref-item-separator
  3520. ----
  3521. .. _class_@GlobalScope_method_push_error:
  3522. .. rst-class:: classref-method
  3523. |void| **push_error**\ (\ ...\ ) |vararg|
  3524. Pushes an error message to Godot's built-in debugger and to the OS terminal.
  3525. .. tabs::
  3526. .. code-tab:: gdscript
  3527. push_error("test error") # Prints "test error" to debugger and terminal as error call
  3528. .. code-tab:: csharp
  3529. GD.PushError("test error"); // Prints "test error" to debugger and terminal as error call
  3530. \ **Note:** This function does not pause project execution. To print an error message and pause project execution in debug builds, use ``assert(false, "test error")`` instead.
  3531. .. rst-class:: classref-item-separator
  3532. ----
  3533. .. _class_@GlobalScope_method_push_warning:
  3534. .. rst-class:: classref-method
  3535. |void| **push_warning**\ (\ ...\ ) |vararg|
  3536. Pushes a warning message to Godot's built-in debugger and to the OS terminal.
  3537. .. tabs::
  3538. .. code-tab:: gdscript
  3539. push_warning("test warning") # Prints "test warning" to debugger and terminal as warning call
  3540. .. code-tab:: csharp
  3541. GD.PushWarning("test warning"); // Prints "test warning" to debugger and terminal as warning call
  3542. .. rst-class:: classref-item-separator
  3543. ----
  3544. .. _class_@GlobalScope_method_rad_to_deg:
  3545. .. rst-class:: classref-method
  3546. :ref:`float<class_float>` **rad_to_deg**\ (\ rad\: :ref:`float<class_float>`\ )
  3547. Converts an angle expressed in radians to degrees.
  3548. ::
  3549. rad_to_deg(0.523599) # Returns 30
  3550. rad_to_deg(PI) # Returns 180
  3551. rad_to_deg(PI * 2) # Returns 360
  3552. .. rst-class:: classref-item-separator
  3553. ----
  3554. .. _class_@GlobalScope_method_rand_from_seed:
  3555. .. rst-class:: classref-method
  3556. :ref:`PackedInt64Array<class_PackedInt64Array>` **rand_from_seed**\ (\ seed\: :ref:`int<class_int>`\ )
  3557. Given a ``seed``, returns a :ref:`PackedInt64Array<class_PackedInt64Array>` of size ``2``, where its first element is the randomized :ref:`int<class_int>` value, and the second element is the same as ``seed``. Passing the same ``seed`` consistently returns the same array.
  3558. \ **Note:** "Seed" here refers to the internal state of the pseudo random number generator, currently implemented as a 64 bit integer.
  3559. ::
  3560. var a = rand_from_seed(4)
  3561. print(a[0]) # Prints 2879024997
  3562. print(a[1]) # Prints 4
  3563. .. rst-class:: classref-item-separator
  3564. ----
  3565. .. _class_@GlobalScope_method_randf:
  3566. .. rst-class:: classref-method
  3567. :ref:`float<class_float>` **randf**\ (\ )
  3568. Returns a random floating-point value between ``0.0`` and ``1.0`` (inclusive).
  3569. .. tabs::
  3570. .. code-tab:: gdscript
  3571. randf() # Returns e.g. 0.375671
  3572. .. code-tab:: csharp
  3573. GD.Randf(); // Returns e.g. 0.375671
  3574. .. rst-class:: classref-item-separator
  3575. ----
  3576. .. _class_@GlobalScope_method_randf_range:
  3577. .. rst-class:: classref-method
  3578. :ref:`float<class_float>` **randf_range**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`\ )
  3579. Returns a random floating-point value between ``from`` and ``to`` (inclusive).
  3580. .. tabs::
  3581. .. code-tab:: gdscript
  3582. randf_range(0, 20.5) # Returns e.g. 7.45315
  3583. randf_range(-10, 10) # Returns e.g. -3.844535
  3584. .. code-tab:: csharp
  3585. GD.RandRange(0.0, 20.5); // Returns e.g. 7.45315
  3586. GD.RandRange(-10.0, 10.0); // Returns e.g. -3.844535
  3587. .. rst-class:: classref-item-separator
  3588. ----
  3589. .. _class_@GlobalScope_method_randfn:
  3590. .. rst-class:: classref-method
  3591. :ref:`float<class_float>` **randfn**\ (\ mean\: :ref:`float<class_float>`, deviation\: :ref:`float<class_float>`\ )
  3592. Returns a `normally-distributed <https://en.wikipedia.org/wiki/Normal_distribution>`__, pseudo-random floating-point value from the specified ``mean`` and a standard ``deviation``. This is also known as a Gaussian distribution.
  3593. \ **Note:** This method uses the `Box-Muller transform <https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform>`__ algorithm.
  3594. .. rst-class:: classref-item-separator
  3595. ----
  3596. .. _class_@GlobalScope_method_randi:
  3597. .. rst-class:: classref-method
  3598. :ref:`int<class_int>` **randi**\ (\ )
  3599. Returns a random unsigned 32-bit integer. Use remainder to obtain a random value in the interval ``[0, N - 1]`` (where N is smaller than 2^32).
  3600. .. tabs::
  3601. .. code-tab:: gdscript
  3602. randi() # Returns random integer between 0 and 2^32 - 1
  3603. randi() % 20 # Returns random integer between 0 and 19
  3604. randi() % 100 # Returns random integer between 0 and 99
  3605. randi() % 100 + 1 # Returns random integer between 1 and 100
  3606. .. code-tab:: csharp
  3607. GD.Randi(); // Returns random integer between 0 and 2^32 - 1
  3608. GD.Randi() % 20; // Returns random integer between 0 and 19
  3609. GD.Randi() % 100; // Returns random integer between 0 and 99
  3610. GD.Randi() % 100 + 1; // Returns random integer between 1 and 100
  3611. .. rst-class:: classref-item-separator
  3612. ----
  3613. .. _class_@GlobalScope_method_randi_range:
  3614. .. rst-class:: classref-method
  3615. :ref:`int<class_int>` **randi_range**\ (\ from\: :ref:`int<class_int>`, to\: :ref:`int<class_int>`\ )
  3616. Returns a random signed 32-bit integer between ``from`` and ``to`` (inclusive). If ``to`` is lesser than ``from``, they are swapped.
  3617. .. tabs::
  3618. .. code-tab:: gdscript
  3619. randi_range(0, 1) # Returns either 0 or 1
  3620. randi_range(-10, 1000) # Returns random integer between -10 and 1000
  3621. .. code-tab:: csharp
  3622. GD.RandRange(0, 1); // Returns either 0 or 1
  3623. GD.RandRange(-10, 1000); // Returns random integer between -10 and 1000
  3624. .. rst-class:: classref-item-separator
  3625. ----
  3626. .. _class_@GlobalScope_method_randomize:
  3627. .. rst-class:: classref-method
  3628. |void| **randomize**\ (\ )
  3629. Randomizes the seed (or the internal state) of the random number generator. The current implementation uses a number based on the device's time.
  3630. \ **Note:** This function is called automatically when the project is run. If you need to fix the seed to have consistent, reproducible results, use :ref:`seed<class_@GlobalScope_method_seed>` to initialize the random number generator.
  3631. .. rst-class:: classref-item-separator
  3632. ----
  3633. .. _class_@GlobalScope_method_remap:
  3634. .. rst-class:: classref-method
  3635. :ref:`float<class_float>` **remap**\ (\ value\: :ref:`float<class_float>`, istart\: :ref:`float<class_float>`, istop\: :ref:`float<class_float>`, ostart\: :ref:`float<class_float>`, ostop\: :ref:`float<class_float>`\ )
  3636. Maps a ``value`` from range ``[istart, istop]`` to ``[ostart, ostop]``. See also :ref:`lerp<class_@GlobalScope_method_lerp>` and :ref:`inverse_lerp<class_@GlobalScope_method_inverse_lerp>`. If ``value`` is outside ``[istart, istop]``, then the resulting value will also be outside ``[ostart, ostop]``. If this is not desired, use :ref:`clamp<class_@GlobalScope_method_clamp>` on the result of this function.
  3637. ::
  3638. remap(75, 0, 100, -1, 1) # Returns 0.5
  3639. For complex use cases where multiple ranges are needed, consider using :ref:`Curve<class_Curve>` or :ref:`Gradient<class_Gradient>` instead.
  3640. .. rst-class:: classref-item-separator
  3641. ----
  3642. .. _class_@GlobalScope_method_rid_allocate_id:
  3643. .. rst-class:: classref-method
  3644. :ref:`int<class_int>` **rid_allocate_id**\ (\ )
  3645. Allocates a unique ID which can be used by the implementation to construct an RID. This is used mainly from native extensions to implement servers.
  3646. .. rst-class:: classref-item-separator
  3647. ----
  3648. .. _class_@GlobalScope_method_rid_from_int64:
  3649. .. rst-class:: classref-method
  3650. :ref:`RID<class_RID>` **rid_from_int64**\ (\ base\: :ref:`int<class_int>`\ )
  3651. Creates an RID from a ``base``. This is used mainly from native extensions to build servers.
  3652. .. rst-class:: classref-item-separator
  3653. ----
  3654. .. _class_@GlobalScope_method_rotate_toward:
  3655. .. rst-class:: classref-method
  3656. :ref:`float<class_float>` **rotate_toward**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, delta\: :ref:`float<class_float>`\ )
  3657. Rotates ``from`` toward ``to`` by the ``delta`` amount. Will not go past ``to``.
  3658. Similar to :ref:`move_toward<class_@GlobalScope_method_move_toward>`, but interpolates correctly when the angles wrap around :ref:`@GDScript.TAU<class_@GDScript_constant_TAU>`.
  3659. If ``delta`` is negative, this function will rotate away from ``to``, toward the opposite angle, and will not go past the opposite angle.
  3660. .. rst-class:: classref-item-separator
  3661. ----
  3662. .. _class_@GlobalScope_method_round:
  3663. .. rst-class:: classref-method
  3664. :ref:`Variant<class_Variant>` **round**\ (\ x\: :ref:`Variant<class_Variant>`\ )
  3665. Rounds ``x`` to the nearest whole number, with halfway cases rounded away from 0. Supported types: :ref:`int<class_int>`, :ref:`float<class_float>`, :ref:`Vector2<class_Vector2>`, :ref:`Vector2i<class_Vector2i>`, :ref:`Vector3<class_Vector3>`, :ref:`Vector3i<class_Vector3i>`, :ref:`Vector4<class_Vector4>`, :ref:`Vector4i<class_Vector4i>`.
  3666. ::
  3667. round(2.4) # Returns 2
  3668. round(2.5) # Returns 3
  3669. round(2.6) # Returns 3
  3670. See also :ref:`floor<class_@GlobalScope_method_floor>`, :ref:`ceil<class_@GlobalScope_method_ceil>`, and :ref:`snapped<class_@GlobalScope_method_snapped>`.
  3671. \ **Note:** For better type safety, use :ref:`roundf<class_@GlobalScope_method_roundf>`, :ref:`roundi<class_@GlobalScope_method_roundi>`, :ref:`Vector2.round<class_Vector2_method_round>`, :ref:`Vector3.round<class_Vector3_method_round>`, or :ref:`Vector4.round<class_Vector4_method_round>`.
  3672. .. rst-class:: classref-item-separator
  3673. ----
  3674. .. _class_@GlobalScope_method_roundf:
  3675. .. rst-class:: classref-method
  3676. :ref:`float<class_float>` **roundf**\ (\ x\: :ref:`float<class_float>`\ )
  3677. Rounds ``x`` to the nearest whole number, with halfway cases rounded away from 0.
  3678. A type-safe version of :ref:`round<class_@GlobalScope_method_round>`, returning a :ref:`float<class_float>`.
  3679. .. rst-class:: classref-item-separator
  3680. ----
  3681. .. _class_@GlobalScope_method_roundi:
  3682. .. rst-class:: classref-method
  3683. :ref:`int<class_int>` **roundi**\ (\ x\: :ref:`float<class_float>`\ )
  3684. Rounds ``x`` to the nearest whole number, with halfway cases rounded away from 0.
  3685. A type-safe version of :ref:`round<class_@GlobalScope_method_round>`, returning an :ref:`int<class_int>`.
  3686. .. rst-class:: classref-item-separator
  3687. ----
  3688. .. _class_@GlobalScope_method_seed:
  3689. .. rst-class:: classref-method
  3690. |void| **seed**\ (\ base\: :ref:`int<class_int>`\ )
  3691. Sets the seed for the random number generator to ``base``. Setting the seed manually can ensure consistent, repeatable results for most random functions.
  3692. .. tabs::
  3693. .. code-tab:: gdscript
  3694. var my_seed = "Godot Rocks".hash()
  3695. seed(my_seed)
  3696. var a = randf() + randi()
  3697. seed(my_seed)
  3698. var b = randf() + randi()
  3699. # a and b are now identical
  3700. .. code-tab:: csharp
  3701. ulong mySeed = (ulong)GD.Hash("Godot Rocks");
  3702. GD.Seed(mySeed);
  3703. var a = GD.Randf() + GD.Randi();
  3704. GD.Seed(mySeed);
  3705. var b = GD.Randf() + GD.Randi();
  3706. // a and b are now identical
  3707. .. rst-class:: classref-item-separator
  3708. ----
  3709. .. _class_@GlobalScope_method_sign:
  3710. .. rst-class:: classref-method
  3711. :ref:`Variant<class_Variant>` **sign**\ (\ x\: :ref:`Variant<class_Variant>`\ )
  3712. Returns the same type of :ref:`Variant<class_Variant>` as ``x``, with ``-1`` for negative values, ``1`` for positive values, and ``0`` for zeros. For ``nan`` values it returns 0.
  3713. Supported types: :ref:`int<class_int>`, :ref:`float<class_float>`, :ref:`Vector2<class_Vector2>`, :ref:`Vector2i<class_Vector2i>`, :ref:`Vector3<class_Vector3>`, :ref:`Vector3i<class_Vector3i>`, :ref:`Vector4<class_Vector4>`, :ref:`Vector4i<class_Vector4i>`.
  3714. ::
  3715. sign(-6.0) # Returns -1
  3716. sign(0.0) # Returns 0
  3717. sign(6.0) # Returns 1
  3718. sign(NAN) # Returns 0
  3719. sign(Vector3(-6.0, 0.0, 6.0)) # Returns (-1, 0, 1)
  3720. \ **Note:** For better type safety, use :ref:`signf<class_@GlobalScope_method_signf>`, :ref:`signi<class_@GlobalScope_method_signi>`, :ref:`Vector2.sign<class_Vector2_method_sign>`, :ref:`Vector2i.sign<class_Vector2i_method_sign>`, :ref:`Vector3.sign<class_Vector3_method_sign>`, :ref:`Vector3i.sign<class_Vector3i_method_sign>`, :ref:`Vector4.sign<class_Vector4_method_sign>`, or :ref:`Vector4i.sign<class_Vector4i_method_sign>`.
  3721. .. rst-class:: classref-item-separator
  3722. ----
  3723. .. _class_@GlobalScope_method_signf:
  3724. .. rst-class:: classref-method
  3725. :ref:`float<class_float>` **signf**\ (\ x\: :ref:`float<class_float>`\ )
  3726. Returns ``-1.0`` if ``x`` is negative, ``1.0`` if ``x`` is positive, and ``0.0`` if ``x`` is zero. For ``nan`` values of ``x`` it returns 0.0.
  3727. ::
  3728. signf(-6.5) # Returns -1.0
  3729. signf(0.0) # Returns 0.0
  3730. signf(6.5) # Returns 1.0
  3731. signf(NAN) # Returns 0.0
  3732. .. rst-class:: classref-item-separator
  3733. ----
  3734. .. _class_@GlobalScope_method_signi:
  3735. .. rst-class:: classref-method
  3736. :ref:`int<class_int>` **signi**\ (\ x\: :ref:`int<class_int>`\ )
  3737. Returns ``-1`` if ``x`` is negative, ``1`` if ``x`` is positive, and ``0`` if if ``x`` is zero.
  3738. ::
  3739. signi(-6) # Returns -1
  3740. signi(0) # Returns 0
  3741. signi(6) # Returns 1
  3742. .. rst-class:: classref-item-separator
  3743. ----
  3744. .. _class_@GlobalScope_method_sin:
  3745. .. rst-class:: classref-method
  3746. :ref:`float<class_float>` **sin**\ (\ angle_rad\: :ref:`float<class_float>`\ )
  3747. Returns the sine of angle ``angle_rad`` in radians.
  3748. ::
  3749. sin(0.523599) # Returns 0.5
  3750. sin(deg_to_rad(90)) # Returns 1.0
  3751. .. rst-class:: classref-item-separator
  3752. ----
  3753. .. _class_@GlobalScope_method_sinh:
  3754. .. rst-class:: classref-method
  3755. :ref:`float<class_float>` **sinh**\ (\ x\: :ref:`float<class_float>`\ )
  3756. Returns the hyperbolic sine of ``x``.
  3757. ::
  3758. var a = log(2.0) # Returns 0.693147
  3759. sinh(a) # Returns 0.75
  3760. .. rst-class:: classref-item-separator
  3761. ----
  3762. .. _class_@GlobalScope_method_smoothstep:
  3763. .. rst-class:: classref-method
  3764. :ref:`float<class_float>` **smoothstep**\ (\ from\: :ref:`float<class_float>`, to\: :ref:`float<class_float>`, x\: :ref:`float<class_float>`\ )
  3765. Returns the result of smoothly interpolating the value of ``x`` between ``0`` and ``1``, based on the where ``x`` lies with respect to the edges ``from`` and ``to``.
  3766. The return value is ``0`` if ``x <= from``, and ``1`` if ``x >= to``. If ``x`` lies between ``from`` and ``to``, the returned value follows an S-shaped curve that maps ``x`` between ``0`` and ``1``.
  3767. This S-shaped curve is the cubic Hermite interpolator, given by ``f(y) = 3*y^2 - 2*y^3`` where ``y = (x-from) / (to-from)``.
  3768. ::
  3769. smoothstep(0, 2, -5.0) # Returns 0.0
  3770. smoothstep(0, 2, 0.5) # Returns 0.15625
  3771. smoothstep(0, 2, 1.0) # Returns 0.5
  3772. smoothstep(0, 2, 2.0) # Returns 1.0
  3773. Compared to :ref:`ease<class_@GlobalScope_method_ease>` with a curve value of ``-1.6521``, :ref:`smoothstep<class_@GlobalScope_method_smoothstep>` returns the smoothest possible curve with no sudden changes in the derivative. If you need to perform more advanced transitions, use :ref:`Tween<class_Tween>` or :ref:`AnimationPlayer<class_AnimationPlayer>`.
  3774. \ `Comparison between smoothstep() and ease(x, -1.6521) return values <https://raw.githubusercontent.com/godotengine/godot-docs/master/img/smoothstep_ease_comparison.png>`__
  3775. .. rst-class:: classref-item-separator
  3776. ----
  3777. .. _class_@GlobalScope_method_snapped:
  3778. .. rst-class:: classref-method
  3779. :ref:`Variant<class_Variant>` **snapped**\ (\ x\: :ref:`Variant<class_Variant>`, step\: :ref:`Variant<class_Variant>`\ )
  3780. Returns the multiple of ``step`` that is the closest to ``x``. This can also be used to round a floating-point number to an arbitrary number of decimals.
  3781. The returned value is the same type of :ref:`Variant<class_Variant>` as ``step``. Supported types: :ref:`int<class_int>`, :ref:`float<class_float>`, :ref:`Vector2<class_Vector2>`, :ref:`Vector2i<class_Vector2i>`, :ref:`Vector3<class_Vector3>`, :ref:`Vector3i<class_Vector3i>`, :ref:`Vector4<class_Vector4>`, :ref:`Vector4i<class_Vector4i>`.
  3782. ::
  3783. snapped(100, 32) # Returns 96
  3784. snapped(3.14159, 0.01) # Returns 3.14
  3785. snapped(Vector2(34, 70), Vector2(8, 8)) # Returns (32, 72)
  3786. See also :ref:`ceil<class_@GlobalScope_method_ceil>`, :ref:`floor<class_@GlobalScope_method_floor>`, and :ref:`round<class_@GlobalScope_method_round>`.
  3787. \ **Note:** For better type safety, use :ref:`snappedf<class_@GlobalScope_method_snappedf>`, :ref:`snappedi<class_@GlobalScope_method_snappedi>`, :ref:`Vector2.snapped<class_Vector2_method_snapped>`, :ref:`Vector2i.snapped<class_Vector2i_method_snapped>`, :ref:`Vector3.snapped<class_Vector3_method_snapped>`, :ref:`Vector3i.snapped<class_Vector3i_method_snapped>`, :ref:`Vector4.snapped<class_Vector4_method_snapped>`, or :ref:`Vector4i.snapped<class_Vector4i_method_snapped>`.
  3788. .. rst-class:: classref-item-separator
  3789. ----
  3790. .. _class_@GlobalScope_method_snappedf:
  3791. .. rst-class:: classref-method
  3792. :ref:`float<class_float>` **snappedf**\ (\ x\: :ref:`float<class_float>`, step\: :ref:`float<class_float>`\ )
  3793. Returns the multiple of ``step`` that is the closest to ``x``. This can also be used to round a floating-point number to an arbitrary number of decimals.
  3794. A type-safe version of :ref:`snapped<class_@GlobalScope_method_snapped>`, returning a :ref:`float<class_float>`.
  3795. ::
  3796. snappedf(32.0, 2.5) # Returns 32.5
  3797. snappedf(3.14159, 0.01) # Returns 3.14
  3798. .. rst-class:: classref-item-separator
  3799. ----
  3800. .. _class_@GlobalScope_method_snappedi:
  3801. .. rst-class:: classref-method
  3802. :ref:`int<class_int>` **snappedi**\ (\ x\: :ref:`float<class_float>`, step\: :ref:`int<class_int>`\ )
  3803. Returns the multiple of ``step`` that is the closest to ``x``.
  3804. A type-safe version of :ref:`snapped<class_@GlobalScope_method_snapped>`, returning an :ref:`int<class_int>`.
  3805. ::
  3806. snappedi(53, 16) # Returns 48
  3807. snappedi(4096, 100) # Returns 4100
  3808. .. rst-class:: classref-item-separator
  3809. ----
  3810. .. _class_@GlobalScope_method_sqrt:
  3811. .. rst-class:: classref-method
  3812. :ref:`float<class_float>` **sqrt**\ (\ x\: :ref:`float<class_float>`\ )
  3813. Returns the square root of ``x``, where ``x`` is a non-negative number.
  3814. ::
  3815. sqrt(9) # Returns 3
  3816. sqrt(10.24) # Returns 3.2
  3817. sqrt(-1) # Returns NaN
  3818. \ **Note:** Negative values of ``x`` return NaN ("Not a Number"). in C#, if you need negative inputs, use ``System.Numerics.Complex``.
  3819. .. rst-class:: classref-item-separator
  3820. ----
  3821. .. _class_@GlobalScope_method_step_decimals:
  3822. .. rst-class:: classref-method
  3823. :ref:`int<class_int>` **step_decimals**\ (\ x\: :ref:`float<class_float>`\ )
  3824. Returns the position of the first non-zero digit, after the decimal point. Note that the maximum return value is 10, which is a design decision in the implementation.
  3825. ::
  3826. var n = step_decimals(5) # n is 0
  3827. n = step_decimals(1.0005) # n is 4
  3828. n = step_decimals(0.000000005) # n is 9
  3829. .. rst-class:: classref-item-separator
  3830. ----
  3831. .. _class_@GlobalScope_method_str:
  3832. .. rst-class:: classref-method
  3833. :ref:`String<class_String>` **str**\ (\ ...\ ) |vararg|
  3834. Converts one or more arguments of any :ref:`Variant<class_Variant>` type to a :ref:`String<class_String>` in the best way possible.
  3835. ::
  3836. var a = [10, 20, 30]
  3837. var b = str(a)
  3838. print(len(a)) # Prints 3 (the number of elements in the array).
  3839. print(len(b)) # Prints 12 (the length of the string "[10, 20, 30]").
  3840. .. rst-class:: classref-item-separator
  3841. ----
  3842. .. _class_@GlobalScope_method_str_to_var:
  3843. .. rst-class:: classref-method
  3844. :ref:`Variant<class_Variant>` **str_to_var**\ (\ string\: :ref:`String<class_String>`\ )
  3845. Converts a formatted ``string`` that was returned by :ref:`var_to_str<class_@GlobalScope_method_var_to_str>` to the original :ref:`Variant<class_Variant>`.
  3846. .. tabs::
  3847. .. code-tab:: gdscript
  3848. var data = '{ "a": 1, "b": 2 }' # data is a String
  3849. var dict = str_to_var(data) # dict is a Dictionary
  3850. print(dict["a"]) # Prints 1
  3851. .. code-tab:: csharp
  3852. string data = "{ \"a\": 1, \"b\": 2 }"; // data is a string
  3853. var dict = GD.StrToVar(data).AsGodotDictionary(); // dict is a Dictionary
  3854. GD.Print(dict["a"]); // Prints 1
  3855. .. rst-class:: classref-item-separator
  3856. ----
  3857. .. _class_@GlobalScope_method_tan:
  3858. .. rst-class:: classref-method
  3859. :ref:`float<class_float>` **tan**\ (\ angle_rad\: :ref:`float<class_float>`\ )
  3860. Returns the tangent of angle ``angle_rad`` in radians.
  3861. ::
  3862. tan(deg_to_rad(45)) # Returns 1
  3863. .. rst-class:: classref-item-separator
  3864. ----
  3865. .. _class_@GlobalScope_method_tanh:
  3866. .. rst-class:: classref-method
  3867. :ref:`float<class_float>` **tanh**\ (\ x\: :ref:`float<class_float>`\ )
  3868. Returns the hyperbolic tangent of ``x``.
  3869. ::
  3870. var a = log(2.0) # Returns 0.693147
  3871. tanh(a) # Returns 0.6
  3872. .. rst-class:: classref-item-separator
  3873. ----
  3874. .. _class_@GlobalScope_method_type_convert:
  3875. .. rst-class:: classref-method
  3876. :ref:`Variant<class_Variant>` **type_convert**\ (\ variant\: :ref:`Variant<class_Variant>`, type\: :ref:`int<class_int>`\ )
  3877. Converts the given ``variant`` to the given ``type``, using the :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` values. This method is generous with how it handles types, it can automatically convert between array types, convert numeric :ref:`String<class_String>`\ s to :ref:`int<class_int>`, and converting most things to :ref:`String<class_String>`.
  3878. If the type conversion cannot be done, this method will return the default value for that type, for example converting :ref:`Rect2<class_Rect2>` to :ref:`Vector2<class_Vector2>` will always return :ref:`Vector2.ZERO<class_Vector2_constant_ZERO>`. This method will never show error messages as long as ``type`` is a valid Variant type.
  3879. The returned value is a :ref:`Variant<class_Variant>`, but the data inside and its type will be the same as the requested type.
  3880. ::
  3881. type_convert("Hi!", TYPE_INT) # Returns 0
  3882. type_convert("123", TYPE_INT) # Returns 123
  3883. type_convert(123.4, TYPE_INT) # Returns 123
  3884. type_convert(5, TYPE_VECTOR2) # Returns (0, 0)
  3885. type_convert("Hi!", TYPE_NIL) # Returns null
  3886. .. rst-class:: classref-item-separator
  3887. ----
  3888. .. _class_@GlobalScope_method_type_string:
  3889. .. rst-class:: classref-method
  3890. :ref:`String<class_String>` **type_string**\ (\ type\: :ref:`int<class_int>`\ )
  3891. Returns a human-readable name of the given ``type``, using the :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` values.
  3892. ::
  3893. print(TYPE_INT) # Prints 2.
  3894. print(type_string(TYPE_INT)) # Prints "int".
  3895. print(type_string(TYPE_STRING)) # Prints "String".
  3896. See also :ref:`typeof<class_@GlobalScope_method_typeof>`.
  3897. .. rst-class:: classref-item-separator
  3898. ----
  3899. .. _class_@GlobalScope_method_typeof:
  3900. .. rst-class:: classref-method
  3901. :ref:`int<class_int>` **typeof**\ (\ variable\: :ref:`Variant<class_Variant>`\ )
  3902. Returns the internal type of the given ``variable``, using the :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` values.
  3903. ::
  3904. var json = JSON.new()
  3905. json.parse('["a", "b", "c"]')
  3906. var result = json.get_data()
  3907. if typeof(result) == TYPE_ARRAY:
  3908. print(result[0]) # Prints a
  3909. else:
  3910. print("Unexpected result")
  3911. See also :ref:`type_string<class_@GlobalScope_method_type_string>`.
  3912. .. rst-class:: classref-item-separator
  3913. ----
  3914. .. _class_@GlobalScope_method_var_to_bytes:
  3915. .. rst-class:: classref-method
  3916. :ref:`PackedByteArray<class_PackedByteArray>` **var_to_bytes**\ (\ variable\: :ref:`Variant<class_Variant>`\ )
  3917. Encodes a :ref:`Variant<class_Variant>` value to a byte array, without encoding objects. Deserialization can be done with :ref:`bytes_to_var<class_@GlobalScope_method_bytes_to_var>`.
  3918. \ **Note:** If you need object serialization, see :ref:`var_to_bytes_with_objects<class_@GlobalScope_method_var_to_bytes_with_objects>`.
  3919. \ **Note:** Encoding :ref:`Callable<class_Callable>` is not supported and will result in an empty value, regardless of the data.
  3920. .. rst-class:: classref-item-separator
  3921. ----
  3922. .. _class_@GlobalScope_method_var_to_bytes_with_objects:
  3923. .. rst-class:: classref-method
  3924. :ref:`PackedByteArray<class_PackedByteArray>` **var_to_bytes_with_objects**\ (\ variable\: :ref:`Variant<class_Variant>`\ )
  3925. Encodes a :ref:`Variant<class_Variant>` value to a byte array. Encoding objects is allowed (and can potentially include executable code). Deserialization can be done with :ref:`bytes_to_var_with_objects<class_@GlobalScope_method_bytes_to_var_with_objects>`.
  3926. \ **Note:** Encoding :ref:`Callable<class_Callable>` is not supported and will result in an empty value, regardless of the data.
  3927. .. rst-class:: classref-item-separator
  3928. ----
  3929. .. _class_@GlobalScope_method_var_to_str:
  3930. .. rst-class:: classref-method
  3931. :ref:`String<class_String>` **var_to_str**\ (\ variable\: :ref:`Variant<class_Variant>`\ )
  3932. Converts a :ref:`Variant<class_Variant>` ``variable`` to a formatted :ref:`String<class_String>` that can then be parsed using :ref:`str_to_var<class_@GlobalScope_method_str_to_var>`.
  3933. .. tabs::
  3934. .. code-tab:: gdscript
  3935. var a = { "a": 1, "b": 2 }
  3936. print(var_to_str(a))
  3937. .. code-tab:: csharp
  3938. var a = new Godot.Collections.Dictionary { ["a"] = 1, ["b"] = 2 };
  3939. GD.Print(GD.VarToStr(a));
  3940. Prints:
  3941. .. code:: text
  3942. {
  3943. "a": 1,
  3944. "b": 2
  3945. }
  3946. \ **Note:** Converting :ref:`Signal<class_Signal>` or :ref:`Callable<class_Callable>` is not supported and will result in an empty value for these types, regardless of their data.
  3947. .. rst-class:: classref-item-separator
  3948. ----
  3949. .. _class_@GlobalScope_method_weakref:
  3950. .. rst-class:: classref-method
  3951. :ref:`Variant<class_Variant>` **weakref**\ (\ obj\: :ref:`Variant<class_Variant>`\ )
  3952. Returns a :ref:`WeakRef<class_WeakRef>` instance holding a weak reference to ``obj``. Returns an empty :ref:`WeakRef<class_WeakRef>` instance if ``obj`` is ``null``. Prints an error and returns ``null`` if ``obj`` is neither :ref:`Object<class_Object>`-derived nor ``null``.
  3953. A weak reference to an object is not enough to keep the object alive: when the only remaining references to a referent are weak references, garbage collection is free to destroy the referent and reuse its memory for something else. However, until the object is actually destroyed the weak reference may return the object even if there are no strong references to it.
  3954. .. rst-class:: classref-item-separator
  3955. ----
  3956. .. _class_@GlobalScope_method_wrap:
  3957. .. rst-class:: classref-method
  3958. :ref:`Variant<class_Variant>` **wrap**\ (\ value\: :ref:`Variant<class_Variant>`, min\: :ref:`Variant<class_Variant>`, max\: :ref:`Variant<class_Variant>`\ )
  3959. Wraps the :ref:`Variant<class_Variant>` ``value`` between ``min`` and ``max``. Can be used for creating loop-alike behavior or infinite surfaces.
  3960. Variant types :ref:`int<class_int>` and :ref:`float<class_float>` are supported. If any of the arguments is :ref:`float<class_float>` this function returns a :ref:`float<class_float>`, otherwise it returns an :ref:`int<class_int>`.
  3961. ::
  3962. var a = wrap(4, 5, 10)
  3963. # a is 9 (int)
  3964. var a = wrap(7, 5, 10)
  3965. # a is 7 (int)
  3966. var a = wrap(10.5, 5, 10)
  3967. # a is 5.5 (float)
  3968. .. rst-class:: classref-item-separator
  3969. ----
  3970. .. _class_@GlobalScope_method_wrapf:
  3971. .. rst-class:: classref-method
  3972. :ref:`float<class_float>` **wrapf**\ (\ value\: :ref:`float<class_float>`, min\: :ref:`float<class_float>`, max\: :ref:`float<class_float>`\ )
  3973. Wraps the float ``value`` between ``min`` and ``max``. Can be used for creating loop-alike behavior or infinite surfaces.
  3974. ::
  3975. # Infinite loop between 5.0 and 9.9
  3976. value = wrapf(value + 0.1, 5.0, 10.0)
  3977. ::
  3978. # Infinite rotation (in radians)
  3979. angle = wrapf(angle + 0.1, 0.0, TAU)
  3980. ::
  3981. # Infinite rotation (in radians)
  3982. angle = wrapf(angle + 0.1, -PI, PI)
  3983. \ **Note:** If ``min`` is ``0``, this is equivalent to :ref:`fposmod<class_@GlobalScope_method_fposmod>`, so prefer using that instead.
  3984. \ :ref:`wrapf<class_@GlobalScope_method_wrapf>` is more flexible than using the :ref:`fposmod<class_@GlobalScope_method_fposmod>` approach by giving the user control over the minimum value.
  3985. .. rst-class:: classref-item-separator
  3986. ----
  3987. .. _class_@GlobalScope_method_wrapi:
  3988. .. rst-class:: classref-method
  3989. :ref:`int<class_int>` **wrapi**\ (\ value\: :ref:`int<class_int>`, min\: :ref:`int<class_int>`, max\: :ref:`int<class_int>`\ )
  3990. Wraps the integer ``value`` between ``min`` and ``max``. Can be used for creating loop-alike behavior or infinite surfaces.
  3991. ::
  3992. # Infinite loop between 5 and 9
  3993. frame = wrapi(frame + 1, 5, 10)
  3994. ::
  3995. # result is -2
  3996. var result = wrapi(-6, -5, -1)
  3997. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  3998. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  3999. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  4000. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  4001. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  4002. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  4003. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  4004. .. |void| replace:: :abbr:`void (No return value.)`