Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Promoted
Can I have some scripting help in Unity 3d?
in unity i'm a beginner a scripting but I don't understand what i'm doing wrong. I'm trying to make a javascript to open a door on click,this is what I put-
function OnMouseDown()
}
transform.position.y=2
{
it keeps saying unexpected symbol } or unexpected symbol .
what am I doing wrong?
1 Answer
Relevance
- AstanoLv 79 years agoFavorite Answer
You have the { } the wrong way around, it should be
function OnMouseDown()
{
transform.position.y = 2;
}
Source(s): Computer Games Developer
Still have questions? Get your answers by asking now.