I have built a web player, windows standalone, all 3 OSX standalones, and a dashboard widget. The web player and and windows builds are working perfectly.
The mac versions are not executing the scripts I have placed on animation events. The builds were done on a windows machine and run on OS X 10.5.11.
Are the animations created with Unity’s animation editor throughout or imported from a 3D app? There seems to be a problem when you add events to some imported animations.
The animations were created in Maya. Some of the animations were duplicated in unity so they could be manipulated. I’ve narrowed it down to two specific scripts which aren’t working. There are some scripts attached to the animation events that are working. So it may be the scripts and not have anything to do with the animation events.
update:
I have used a mac to build the scene and the scripts are still not working. However, the scripts execute fine in the editor. Here the scripts:
function SwitchCamera( cameraIndex : float){
newCamera = cutsceneCameras[parseInt(cameraIndex)];
Debug.Log(newCamera.name);
renderCamera.transform.parent = newCamera;
renderCamera.localPosition = Vector3.zero;
renderCamera.localRotation = Quaternion.Euler(0, 270, 0);
}
var boxes: Transform[];
function makeInvisible() {
//Debug.Log;
for(var o in boxes){
o.GetComponent(Renderer).enabled= false;
}
}
var boxes: Transform[];
function makeVisible() {
for(var o in boxes){
o.GetComponent(Renderer).enabled = true;
}
}
Did anyone ever solve this problem because I am currently suffering from something that sounds pretty similar…
See my post:
http://forum.unity3d.com/viewtopic.php?p=332416
Thanks