Skip to main content

Class UintVariable

A self-contained, asset-based uint variable that supports arithmetic operations.

[CreateAssetMenu(fileName = "New UintVariable", menuName = "ScriptableObject/Scriptable/Variable/UintVariable")]
public class UintVariable : BaseScriptableVariable<uint>, IAddable<uint>, ISubtractable<uint>

Inheritance​

Implements​

Inherited Members​

Remarks​

This scriptable object stores a runtime unsigned integer value that can be persisted and shared across scenes.

Methods​

Add(uint)​

Adds a value to the runtime variable.

public virtual void Add(uint value)

Parameters​

NameTypeDescription
valueuintThe value to add.

Subtract(uint)​

Subtract a value to the runtime variable.

public virtual void Subtract(uint value)

Parameters​

NameTypeDescription
valueuintThe value to subtract.