public object WolframLanguage.Evaluate(string str)
sends a string str to the Wolfram Language for evaluation.
Details
  
    
   Examples  
  Basic Examples  
   See Also
 WolframLanguage.Evaluate()
public object WolframLanguage.Evaluate(string str)
sends a string str to the Wolfram Language for evaluation.
Details
- WolframLanguage.Evaluate() is a member function of the WolframLanguage class.
 - WolframLanguage.Evaluate() is only available for use in Unity scripts.
 - WolframLanguage.Evaluate() sends a string suitable for use with ToExpression for evaluation.
 - WolframLanguage.Evaluate() return null object on failure and a dynamic type object on success.
 
Examples
Basic Examples (1)
Create and rotate a cube generated by evaluating CreateUnityCube in the Wolfram Language:
using UnityEngine;
public class demo : MonoBehaviour
{
public WolframLanguage wl;
private float speed = 10f;
private GameObject go;
void Start()
{
go = (GameObject) wl.Evaluate("CreateUnityCube[]");
}
void Update()
{
go.transform.Rotate(Vector3.up, speed * Time.deltaTime);
}
}