Yarn Spinner
2.2 (Current)
WebsiteDiscordGitHubPatreon
Search
⌃K
Links
⭐
Start Here
Writing Your Dialogue
⌨
Editing with VS Code
✍
Writing in Yarn
🪄
Upgrading Yarn Scripts
Working With Unity
Overview
📦
Installation
⚡
Quick Start
📥
Importing Yarn Files
🧱
Components
🤖
Commands and Functions
🗺
Localizations and Assets
💡
Frequently Asked Questions / "How Do I...?"
Unity Sample Projects
🛠
Choose-Your-Path Game
🛠
Choose-Your-Path Game with Visuals
🛠
NPC Dialogue Game
Guides
🗃
Yarn Variables and Variable Storage
About
The Team
GitHub Repositories
Community Projects
How to credit Yarn Spinner
API Documentation
C#
Yarn Namespace
BuiltinTypes
Command
CommandHandler
Dialogue
DialogueCompleteHandler
DialogueException
FunctionType
IType
IVariableStorage
Clear()
SetValue(string,bool)
SetValue(string,float)
SetValue(string,string)
TryGetValue(string,T)
Library
Line
LineHandler
Logger
MemoryVariableStore
Node
NodeCompleteHandler
NodeStartHandler
OptionSet
OptionsHandler
PrepareForLinesHandler
Program
Yarn.Markup Namespace
Yarn.Compiler Namespace
Yarn.Compiler.Upgrader Namespace
Yarn.Unity Namespace
Powered By GitBook

SetValue(string,float)

Method in IVariableStorage​

Summary

Stores a float in this VariableStorage.
void SetValue(string variableName, float floatValue);

Parameters

Name
Description
string variableName
The name to associate with this variable.
float floatValue
The number to store.
Previous
SetValue(string,bool)
Next
SetValue(string,string)
Last modified 1yr ago
Export as PDF
Copy link
Edit on GitHub
On this page
Summary
Parameters