Skip to main content

GDTKStatValue.FromExpression

Declaration#

public static GDTKStatValue FromExpression(string expression)

Parameters#

NameDescription
expressionExpression to use

Description#

Create object from string expression

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod()    {        GDTKStatValue result = GDTKStatValue.FromExpression("health + 7");    }

}