- Home /
This question was
closed Jul 18, 2014 at 01:42 PM by
Graham-Dunnett for the following reason:
Duplicate Question
CS8025 parsing error, can't find, halp !
using UnityEngine;
using System.Collections;
public var cam1 : Camera;
public var cam2 : Camera;
function Update() {
if (Input.GetKey(KeyCode.Enter))
{
cam1.camera.enabled = false;
cam2.camera.enabled = true;
}
if (Input.GetKey(KeyCode.Spacebar))
{
cam1.camera.enabled = true;
cam2.camera.enabled = false;
}
}
I'm a 3D graphic designer on an internship and I have a simple task to do, just switch between 2 cameras in a scene, nothing hard, but I've always been bad at coding, not that big of a deal since it's not my "job" at first, but I really can't find what's wrong in my code :/
It says "Assets/Scripts/camera_changing.cs(4,17): error CS8025: Parsing error"
Comment
Follow this Question
Related Questions
Jukebox parsing error 2 Answers
unity 3d - c# scripting problems 1 Answer
Errors CS1525 and CS8025.... 1 Answer
Script Errors with C# 1 Answer
Parsing error with my code 3 Answers