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:
  • Evaluateevaluate a Wolfram Language expression
    Informationreturn information about the Wolfram Engine been used
    CloudEvaluateevaluate 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);
}
}