Expressio Product Logo
    Lightweight
    Fast
    Customizable
    
    using Expressio.Float;
    
    public class Example : MonoBehaviour {
    	ExpressionContext context;
    
    	void Awake() {
    		Parser parser = new Parser(ContextConfiguration.Default);
    		context = parser.Parse("x+2");
    	}
    
    	void Update() {
    		var container = new VariableContainer(new Dictionary() { { "x", transform.position.x }});
    		context.SetVariables(container);
    		float result = context.Evaluate();
    		transform.Translate(new Vector3(result, 0f, 0f) * Time.deltaTime);
    	}
    }
    
    
    Expressio Product Logo
    Lightweight
    Fast
    Customizable
    Expressio Product Logo
    Lightweight
    Fast
    Customizable
    Back to top Copyright © 2021 David Zaina @ZzAtomiic
    Generated by DocFX
    Follow @ZzAtomiic