Quantcast
Channel: Latest Questions by LegendWill
Browsing latest articles
Browse All 36 View Live

BCE0044 Expecting ), found {

Please help! I have two errors: Line 20,9 expecting ), found { Line 25,1 expecting EOF, found } I am trying to make a basic sprint script. #pragma strict var walkSpeed : float = 7; var sprintSpeed :...

View Article



Pop-Up GUI

Hello. I wanted to make this little feature when you press "b" a pop-up book appears and you can view different tabs with different textures and information, then when you press b again it closes the...

View Article

Semicolon Error..

Hi, I am working on a basic weapon script that does animations with your fists when you hit(it's random for whichever fist). I am getting "Assets/Weapon.js(7,25): UCE0001: ';' expected. Insert a...

View Article

Ambiguous reference, Please help!

Please help, I have an error. Assets/6by7/ProGrids/Scripts/Editor/ProGrids_GUI.js(120,55): BCE0004: Ambiguous reference 'constructor': UnityEngine.GUIContent.constructor(UnityEngine.Texture, String),...

View Article

ShowCursor not working on Pause

Hello, I have this script. When the player presses escape, the game pauses. The GUI works and everything, but the cursor won't. At the start of the game, you can see the cursor. Then when you press...

View Article


Cursor Always Centered?

So, playing games I have noticed in the games, such as an FPS, you can't see your cursor(duh). Although, if you were to pause the game, your cursor would be at the center of the screen. How can I...

View Article

Show new Unity GUI on pause?

In the new unity 4.6 beta update, there is a lot of new UI features. It looks a little confusing about functioning the buttons, but I don't need help with that. I needed to know if it's possible to...

View Article

error CS0103: The name `String' does not exist in the current context

I need help solving the error that is in the title. 1. DevLogin.cs(5,35): error CS0103: The name `String' does not exist in the current context 2. DevLogin.cs(6,35): error CS0103: The name `String'...

View Article


How to tell if something is enabled

I need to tell if something is activated. In my script, I need to tell whether a gameobject is activated or not. Such as, if this gameobject is activated, then do this. This is in c#

View Article


Unity 4.6 Not to Scale

So, I have made a pause menu using the new UI in Unity 4.6. Whenever I set the resolution to 480, 720, etc., the GUI becomes un-scaled. Is there a way to fix this? Do I have to manually set the...

View Article

EnemyAI Flys?

Hello. So in this EnemyAI script I found, the enemy seems to fly and defy gravity. Such as, when the enemy follows the player, and the player de-elevates or jumps, the enemy goes into the air. A...

View Article

Assign a variable at start

C# When my player is instantiated over the network, one of the variables on my pause menu script seems to not be assigned. I do not want to use my pause menu canvas as a prefab, but if I have to, I...

View Article

Multiplayer Usernames c#

I'm having a lot of trouble synchronizing a player's username to the other player. At the start of my game, they are asked to give their self a username that will be used for that session and it stores...

View Article


How to Center Cursor using Unity 5

Since lockCursor has been deprecated, how do you center the cursor using Unity 5?

View Article

Nicknames on Multiplayer c#

Hello, I'm having a bit of trouble understanding RPC calls. At the start of my game, they are asked to give their self a username that will be used for that session and it stores it in a PlayerStats...

View Article


c# 3 errors dealing with arrays

I'm a bit noobish. I was translating a java script to c# and I'm getting 3 errors dealing with my Contents and newContent arrays. These 3 errors are the exact same for line 23. Can someone please help...

View Article

Multiplayer Nicknames

Hello, I'm having some trouble with nicknames. I am trying to make a 2 player game. On startup, the player is prompted asking for a username to use for the session, the string is then stored on an...

View Article


CS0119: Expression denotes a `type', where a `variable', `value' or `method...

Can someone please help me? When I make itemIconSize equal a new vector 3 I get tons of errors. Assets/Inventory/InventoryGUI.cs(8,32): error CS0119: Expression denotes a `type', where a `variable',...

View Article
Browsing latest articles
Browse All 36 View Live




Latest Images