- Home /
What's the matter with my Cube.fbx?
Why does this happen? It's just a newly created cube:
http://gyazo.com/64549e2a69aefccb2d84c903a5416a35
EDIT: IT STARTED AGAIN
Why is your FBX in the OnGUI function? What are you trying to do? Can we see your code? There really shouldnt be a problem. Just export your model to unity as an FBX, then drag the model into your scene. Also, make it into a prefab as well.
I've made two four different animations in ex2D and now i created the cube and i got this error straight away. This is the ONLY self-made script that i use. I've added a simple sprite to the cube, with a ground tile. That's all.
using UnityEngine;
using System.Collections;
public class Controls : $$anonymous$$onoBehaviour {
public exSpriteAnimation spAnim;
private string last_anim;
void Update() {
if (Input.Get$$anonymous$$ey($$anonymous$$eyCode.D))
{
if (!spAnim.IsPlaying("r_walk_ani"))
{
spAnim.Play("r_walk_ani");
last_anim = "r_walk_ani";
}
//this.transform.Translate(Vector3.right*150f*Time.deltaTime);
}else if (Input.Get$$anonymous$$ey($$anonymous$$eyCode.A))
{
if (!spAnim.IsPlaying("l_walk_ani"))
{
spAnim.Play("l_walk_ani");
last_anim = "l_walk_ani";
}
//this.transform.Translate(Vector3.left*150f*Time.deltaTime);
}else if(!spAnim.IsPlaying("r_idle_ani") && last_anim == "r_walk_ani")
{
spAnim.Play ("r_idle_ani");
}else if(!spAnim.IsPlaying("l_idle_ani") && last_anim == "l_walk_ani")
{
spAnim.Play ("l_idle_ani");
}
}
}
Your answer
Follow this Question
Related Questions
Console Error 1 Answer
A node in a childnode? 1 Answer
Why do I get this error 0 Answers
My C# script brings back no results in the console 1 Answer
Wierd Console Errors 2 Answers