2.3 (Current)
Website
Discord
GitHub
Patreon
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
Building a Custom Dialogue Runner
🗃
Yarn Variables and Custom Variable Storage
About
The Team
GitHub Repositories
Community Projects
How to credit Yarn Spinner
API Documentation
C#
Yarn Namespace
Yarn.Markup Namespace
Yarn.Compiler Namespace
BasicBlock
CompilationJob
CompilationResult
Compiler
DebugInfo
Declaration
DeclarationBuilder
WithDefaultValue(System.IConvertible)
WithDescription(string)
WithImplicit(bool)
WithName(string)
WithRange(Yarn.Compiler.Range)
WithSourceFileName(string)
WithSourceNodeName(string)
WithType(IType)
Declaration
DeferredTypeDiagnostic
Diagnostic
FileParseResult
FunctionTypeBuilder
IndentAwareLexer
InstructionCollectionExtensions
Position
Project
Range
StringInfo
Utility
Yarn.Compiler.Upgrader Namespace
Yarn.Unity Namespace
Yarn.Unity.UnityLocalization Namespace
Powered By
GitBook
WithType(IType)
Method in
DeclarationBuilder
Summary
Sets the
Type
of the
Declaration
.
public
DeclarationBuilder
WithType
(
IType
type
)
Parameters
Name
Description
Yarn.IType
type
The type to apply to the Declaration.
Returns
The
DeclarationBuilder
instance that received this method call.
Previous
WithSourceNodeName(string)
Next
Declaration
Last modified
21d ago