Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTim T. Bigelow-Martin
5,744 PointsA Heap of compiler issues on playmode! (unity 5.5.2f1)
After adding the player object and programming him to stay on the ground i get this error when I try to enter playmode:
All compiler errors have to be fixed before you can enter playmode! 0x0000000141519A3B (Unity) StackWalker::GetCurrentCallstack
I have no idea what any of this means and i can't simply just click on the error in the console because it takes me nowhere.
Update: It has come to my attention that the issue might have to do with the script, so ill mention it here just in case:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour {
private Animator playerAnimator;
private float moveHorizontal;
private float moveVertical;
private Vector3 movement;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
moveHorizontal = Input.GetAxisRaw ("Horizontal");
moveVertical = Input.GetAxisRaw("Vertical");
movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
}
}
Mike Wagner
23,559 PointsI'm not especially adept at reading all those nonsense errors and, even if I were to be, It doesn't really look like there's a ton of super useful intelligence hidden in there. Could you possibly share some of the added code/describe the configuration of the player a bit more? You might have to undo things step by step until you find the culprit.
Tim T. Bigelow-Martin
5,744 PointsTim T. Bigelow-Martin
5,744 PointsI am using microsoft visual studios 2015 for clarification.