Yarn Spinner
2.2 (Current)
WebsiteDiscordGitHubPatreon
Search
⌃K
Links
2.2 (Current)
⭐
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
Library
Line
LineHandler
Logger
MemoryVariableStore
Node
NodeCompleteHandler
NodeStartHandler
OptionSet
Options
Option
DestinationNode
ID
IsAvailable
Line
OptionsHandler
PrepareForLinesHandler
Program
Yarn.Markup Namespace
Yarn.Compiler Namespace
Yarn.Compiler.Upgrader Namespace
Yarn.Unity Namespace
Powered By GitBook

ID

Property in Option​

Summary

Gets the identifying number for this option.
public int ID { get; private set; }

Remarks

When the user selects this option, this value should be used as the parameter for SetSelectedOption(int) .
Previous
DestinationNode
Next
IsAvailable
Last modified 1yr ago
Export as PDF
Copy link
Edit on GitHub
On this page
Summary
Remarks