WolframLanguage()
class WolframLanguage()
is a class that is used to call the Wolfram Language from Unity.
Details
- WolframLanguage() is only available for use in Unity scripts.
- Possible member functions of WolframLanguage class include:
-
Evaluate evaluate a Wolfram Language expression Information return information about the Wolfram Engine been used CloudEvaluate evaluate a Wolfram Language expression in the cloud
Examples
Basic Examples (1)
Call the Wolfram Language from Unity to create a cube in Unity:
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);
}
}