Imported FBX objects will not Rotate or Drag
If I import a FBX object it will not scale or rotate with my scripts.
If I create Game Object 3d Cube then the scripts work (the objects will scale and rotate.
What is wrong with the script or Unity? Both scripts are similar
using UnityEngine; using System.Collections; public class Rot : MonoBehaviour { private Vector3 currentRotation; // Use this for initialization // void OnMouseDown() void OnMouseOver() %|-973996073_5|% %|-274235603_6|% %|1906380869_7|% { currentRotation = gameObject.transform.eulerAngles; transform.rotation = Quaternion.Euler(0, 0, currentRotation.z + 90f); %|1992919563_11|% %|-1188150231_12|% } // Update is called once per frame //void Update () { }
Your answer
Follow this Question
Related Questions
Imported model is rotated around 90 degrees but on 3d software its ok 1 Answer
Missing parts when i export an object. Please help, i dont know what to do 1 Answer
Importing from Maya to Unity: "Check external application preferences" error, even on a cube 1 Answer
Any fbx animation changes immediately reverted 0 Answers
Avoid several prefabs' animations from looping at the same time when assigned to asset bundle 0 Answers