All pages
Powered by GitBook
1 of 7

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

SetValue(string,float)

Method in VariableStorageBehaviour

Summary

public abstract void SetValue(string variableName, float floatValue);

Parameters

Name
Description

string variableName

float floatValue

Clear()

Method in

public abstract void Clear();

Summary

VariableStorageBehaviour

Contains(string)

Method in VariableStorageBehaviour

Summary

Returns a boolean value representing if a particular variable is inside the variable storage.

Parameters

Name
Description

string variableName

The name of the variable to check for.

Returns

true if this variable storage contains a value for the variable named variableName ; false otherwise.

public abstract bool Contains(string variableName);

TryGetValue(string,T)

Method in VariableStorageBehaviour

Summary

public abstract bool TryGetValue<T>(string variableName, out T result);

Parameters

Name
Description

string variableName

SetValue(string,string)

Method in

Name
Description

T result

public abstract void SetValue(string variableName, string stringValue);

string variableName

Summary

Parameters

VariableStorageBehaviour

string stringValue

SetValue(string,bool)

Method in VariableStorageBehaviour

Summary

public abstract void SetValue(string variableName, bool boolValue);

Parameters

Name
Description

string variableName

bool boolValue

VariableStorageBehaviour

Class in Yarn.Unity

Inherits from MonoBehaviour

Summary

A MonoBehaviour that a DialogueRunner uses to store and retrieve variables.

public abstract class VariableStorageBehaviour : MonoBehaviour, Yarn.IVariableStorage

Remarks

This abstract class inherits from MonoBehaviour , which means that subclasses of this class can be attached to GameObject s.

Methods

Name
Description

Returns a boolean value representing if a particular variable is inside the variable storage.

Clear()
Contains(string)
SetValue(string,bool)
SetValue(string,float)
SetValue(string,string)
TryGetValue(string,T)