示例#1
0
    // Use this for initialization
    void Start()
    {
        PluginFunctions.arwSetVideoDebugMode(true);
        PluginFunctions.arwSetLogLevel(5);

        PluginFunctions.LogCallback c = new PluginFunctions.LogCallback(this.JLog);
        PluginFunctions.arwRegisterLogCallback(c);


//		// pick a random color
//		Color newColor = new Color( UnityEngine.Random.value, UnityEngine.Random.value, UnityEngine.Random.value, 1.0f );
//		JLog ("Coloured the cube " + newColor.ToString() );
//		// apply it on current object's material
//		GetComponent<MeshRenderer>().material.color = newColor;
    }