Basic Translate Not Working in 2.5.1 xD

This is literally the whole script I am attaching to various objects in my scene.

using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour {


	public Transform toLookAt;
	private Vector3 direction = Vector3.forward;
	// Use this for initialization
	void Start () 
	{

	}
	
	// Update is called once per frame
	void Update () 
	{
		transform.Translate(Vector3.forward * Time.deltaTime, Space.World);
	}
}

For some reason, if it’s not playing in the editor, nothing is moving. :frowning:

I was trying to do a rotate as well and it was the same thing. Worked in the editor but not when built for at least the window standalone, web, and intel macs.

Thanks for the idea.

Btw. Where can I download 2.5 to see if it works for me in that version?

That script, as-is, works for me. I opened a new project, added a sphere to the world, made a new C# script and pasted the code above, attached and hit play and it started moving.

Are you sure you’re not just “missing” it as it’s too slow and or directly away from the camera? Have you selected the object and visually confirmed whether it’s moving or not by watching the transform information? Are there script errors elsewhere in your project stopping proper compile completion?

We’ll get there!

While away from the internet, I found a solution.

I exported all the relevant pieces of my project, imported them into a new project and everything just worked. Very weird. :smile:

Do you still have the broken project? If so, please shoot it to us in a bug report so we can figure out what the underlying error is and fix it for good.

I sure do have it. :slight_smile:
I’ll send it tonight after I get home.

Can you send it as a reply to the e-mail you sent to support@unity3d.com please? this will help to keep everything tidy :slight_smile:

The project folder is really big. About 200-250 megs.

I can export the problem assets so you guys could import and see what I was working with, but that’s what solved the problem for me so I’m not sure that would help.

Let me know what I should submit. :slight_smile: