Using code tags properly

If you see someone who needs to know about code tags, please link them to this post:

Please use code tags when posting code.

You can “tag” your code by typing 984347--130826--Screenshot 2015-03-16 10.33.58.png around your code.

There is no overt “Code” tag button that automatically tags a selection as code.

That being said, however, we can Insert code directly into the post using the “Insert Code” button:

This will bring up an “Insert” window were we can paste our code and choose our language:
984347--103141--Screenshot 2014-06-04 12.39.53.png

This will insert this code with Forum Markup that looks like this:
984347--103142--Screenshot 2014-06-04 12.43.25.png
Note: that when manually inserting code, we can choose the language by using “=CSharp”

This is the final code in the post:

using UnityEngine;
using System.Collections;

public class Explode : MonoBehaviour {

    public GameObject explosion;
    public ParticleSystem[] effects;

    void OnCollisionEnter2D (Collision2D collision) {
        if (collision.gameObject.tag == "Hat") {
            Instantiate (explosion, transform.position, transform.rotation);
            foreach (var effect in effects) {
                effect.transform.parent = null;
                effect.Stop ();
                Destroy (effect.gameObject, 1.0f);
            }
            Destroy (gameObject);
        }
    }
}

Note: the code is linked to the documentation with hyperlinks, so if you need to find out more about any piece of pasted code, follow these links to the documentation.

Hope this helps!

If you don’t use code tags, the code can be difficult to read:

using UnityEngine;
using System.Collections;

public class Explode : MonoBehaviour {

public GameObject explosion;
public ParticleSystem effects;

void OnCollisionEnter2D (Collision2D collision) {
if (collision.gameObject.tag == “Hat”) {
Instantiate (explosion, transform.position, transform.rotation);
foreach (var effect in effects) {
effect.transform.parent = null;
effect.Stop ();
Destroy (effect.gameObject, 1.0f);
}
Destroy (gameObject);
}
}
}

40 Likes
Need help with "warning CS0414: The field 'PlayerController.movement' is assigned but its value is"
I want to connect float to text mash pro
How do I go to my end scene when destroy my objects in current scene?
soooo my code wont work
Error code CS0029 (792892)
Problem with moving (919913)
Atack in long distance with enemy
Moving Between Areas/Levels
How to track if player is alive using if statements
Why does this look wrong? (Self-taught coder - Optimizing question)
I'm having trouble with invoke restart
Script error (834339)
Unity Scripting Problem :(
Error with GameObject detection
Nothing is wrong, yet I can't use the play button.
C# Learning Methods from brackeys and when i do the code there are so many of the same errors
I have a problem im very stupid new and i dont understand it
Animation Code Problem (683051)
Display ball rotation with line renderer?
how can i solve error CS1002
I am having an issue with a camera orientation for the camera in a first person 3d game
I just added one } to the code, what the hell???
Touch Camera Look
Lerp incorect count
Scene Switching not working Correctly?
2D Rigidbody movement slows down closer to mouse cursor
A*pathfinding null reference exception
Vector3 always returns (0,0,0) with GETComponent
Can someone please help me.
Lesson 2.4 - Collision Decisions Help Please
Needing help with shooting script
Player move in y without any code line for it
i have a problem in my code can sum1 help
Unity 2D Door-Room Transitions Help
Having trouble making player run automatically
unity 3d error CS1061 game object does not contain definition for transform
Error CS1002 (850079)
Screen position to world - top of the screen unsupported. Please help.
C#: How to add dampening to Pan, zoom, orbit camera?
need a second delay in script
How to create a repeating timer everytime i click
How do I avoid Unity Freeze with the Instantiate method?
3D Space enviriment battlemap / How to assign new parent to camera
Clicker. Doubling the purchase price
Trouble Moving Forward
Top Down Character
OntriggerEnter2D not being activated
MoveTowards changes speed after one finished movement
How to instantiate gameobject at the point of collision
Move Player to the position of X
C# Errors in Visual Studio that I don't understand
Why are my two bullets shooting simultaneously?
how to stop navmesh agent when hit by object?
so i am getting this error and i cant figure out whats the problem (20,21): error CS1002: ; expected
Can't figure out why Character doesn't jump correctly
Object passing through the room walls
Hi I'm new to Unity I'm coding a stamina bar for my game but I keep getting error
Script only work when I inspected it at least once
I can't seem to change min and max Distance on Audio Source with code
ClientRpc Call Question
NavMesh agent is getting roated -180 on x value, need help.
cant fix sprinting code please help
Destroying object is not allowed at this time.
DestroyObject
Text Adventure Combat
Noob problem please assist
Picking up weapons (941346)
error spawning random prefabs (C# Unity)
Drawing a line between changing points
Health Bar (925391)
Unlocking Levels through Collectibles
text is white bars
Compiler issue with script
I'm new to Unity and have been struggling with a Syntax error for the past 5 hours
Im expiring the error CS1031 Type expected, can u tell me what I did wrong
My volume doesnt save across scenes with player prefs
Issues trying to update Score in my game.
How do I make it so the player can mute/cancel the audio when they interact with the phone?
plz help
i am trying to open the main menu when "escape" gets pressed but it doesnt work.
Help figuring out Mistake
The name "Title" does not exist in the current context.
Unity 3d version 4, respawn script don't work
Multiple hands with highest card
Random game object reshuffling.
How to do custom Sorting in a List?
Help code, basic
Move Left ,Right, Up, Down Script for noobs C#
From Spherical To ellipsoid coordinates
Newbie question - Difference in transform.Translate speed when coding in two different ways
unknown coding error (im new)
Enemy able to chase the player
Score & Lives not resetting on restart of game
Bullets not moving
Understanding The Gyro
Terrain dissapeared
Jumping over tails collision
How to make a Subway Surf like movement script
if statement with floats in C#
When I release the key the animation takes place
How can I make a cube jump with the shortest lines of codes?
Trying to make the player move but blocked by a "blocking"
Bullet Damage System
I want to save some PlayerPrefs and every Time i want to load the Float set it to 0
no x movement in the air (while jumping)
Animating the wrong object
I apologize if this is the wrong thread, but getkey is not working.
Installing a script from Tutorial
player launches
Player moves and bounces all over
The Modifier "public' is not valid for this item[SOLVED!]
Swipe to AddForce to RigidBody in specific direction.
Problems with Corutines
Can´t get damaged on DamageZone and then collect CollectibleHealth (813960)
GetKeyDown and GetButtonDown not working (I am depressed)
Opening UI image gone wrong
My joystick is stuck a left bottom
how can i add double jump in this script?
Creating a button which can switch from walk to run
'isGrounded' variable will not work properly
Having porblems with monbehaviour in java script any help please!
I seem to have a RaycastHit problem?
Box Colliders are not working...
im following tutorial and error CS0103 comes
GameObject.Find("").GetComponent different from just GetComponent?
Movement programming
Strange int behaviour
Can you help me with this it is not working for my game I don't know what I happening I am new to c#
Mouse Look Script not Working
question on activate a gameobject with Vive trigger
How to Increase speed of the ball over time? (729003)
How do i fix error CS0246
Auto set anchor point for Bezier Curve
need help with bool saving
Code not Working with Unity
I need some help...
Heisenbug with stack overflow
Movement code, unfixable error!
How can I reference class with a number name?
How would you change this to work for an Enemy npc
Changing pickup on mouse click yo button press
error CS1525: Invalid expression term ')'
Player "death" checkpoints system
Set image color from code?
Help need fixing my top down Dash script.
3rd person movement along camera
Script to reference GameObject not working on Mobile test?
Why it doesn't work (829428)
Please Help!! Unity canvas issue simple probs
ERROR CODES PLZ HELP
Any way I could optimize these 2 parts of my code?
hi i am Programming with c#. I have an errorand i don´t know how to fix it. Please help !
what happened to my script
Problem with BoxCollider2D detecting the mouse
How do I assign an object to another collider?
Hi, i need some help.
How Can I Short this
26,581 *.bin files in Library\ShaderCache folder - can I delete these?
Learning StateMachine "Brain" Decision Making approaches
Need help with my code (802571)
need help with c# script
Trying to make the player move but blocked by a "blocking"
Camera not following the player
Help with this code please
Why the bouncing ball in motion is looks like blur, multiple image, ghost effect,motion blur, jiter
Help with a combo based system similar to DDR
Movement Problems (733268)
Image Sequence Wrong Framerate [help]
Guitar Hero Clone
How can I use color that way...
FPS Controller Problem segment
error CS1061: 'List<GameObject>' does not contain a definition
Help with code (852976)
Turning (694001)
2D world generation script generating strange world made up of large lines
Change de inputfield value qith script
Index was outside the bounds of the array (861223)
Advice on how to stop a waypoint movement at specified waypoint.
cs2012 type or namespace definition, or end of file expected
transform.eulerAngles issue.
Assets\Scripts\Player system\PlayerOxygen.cs(10,33): error CS0236: A field initializer cannot refere
Unity not recognising keyboard input
How to fix "+" instead of space?
difference between awake and start
Help with audio selection
Can I check a specific character in a string?
Inexplicable errors in script
I need to convert my old Java script "trail system" into a C#
Checking for the z position?
Drawing free lines is displaced on 34" monitor
Bug with my script
transform.position.y error
Vertical movment not working
Get a float from another Object/script
How to get reload function to work c# script. HELP!!
Resources.Load not fetching sprite?
Error cs1022 (812769)
(51,16): error CS1061: 'Bounds' does not contain a definition for 'expand' and no accessible extensi
Assets\Scripts\PlayerController.cs(32,60): error CS1001: Identifier expected
trying to make a cooldown system, but it does not work (it appears error CS1002 and error CS1513)
Issue with my player movement script
ERROR CS1513 :} EXPECTED
Multiple options in one script error
Can't change transform of an object, called from another object(script)
Animation don't want to play
error CS1514
Character Won't Move: NullReferenceException
Json file not written
animations messed up
Assets\PlayerController.cs(88,2): error CS1513: } expected
Check on movement/speed helppls
How Do I Make A Secret Level In Build Index.
How to turn an int into a gameobject?
Shooting mechanic help
Something goes wrong
I can't get the the null check to stop my camera from following the player after they die
How to fix this PlayerMovement Script?
Script class can not be found
Trouble having interactable objects (FPS)
camera moves itself
How to make enemy fire towards player in 2D
Got some errors in this script, glad if anyone could help
Trouble with Unity 2017.1 and the Survival Shooter Tutorial
I have an error The name 'other' does not exist in the current context and idk what to do
i wanna code something in a 2d sprite pls help
Unexpected symbol `void', expecting `class', `delegate', `enum', `interface', `partial', or `struct'
My Player won't move after a collision.
Compare Collided Objects (694687)
*Need Help* Take damage on collision
How do I make projectiles despawn
Turret wont stop to follow player, and instead pushes the player around
Wired shapes shown when i change outline size of textmeshpro from script
Wanting make a shop system. I am stuck with script to make a button not to click again once click.
Why 2 Bullets?
Character Won't Die
Input Key to Accelerate Player
How do i code something to disable an object after a certain point?
[SOLVED]Platform Gravity Shifting Help
Character teleporting
Can't solve the error"Type or namespace definition, or end-of-file expected"
Coroutine does not finish executing...
"Assets\MouseLook.cs(29,62): error CS1003: Syntax error, ',' expected" (824585)
What am I doing wrong? (problem with classes)
GameObject not highlighting
Keep Getting systax error cs1003
Using the accelerometer for collecting
Using Itween with CSV file
PLEASE HELP!!!!
how to fix this
object reference is not set to an instance of an object
Getting script to run without attaching it to a GameObject - how?
My dash cancels out WASD movement
Trouble implimenting "win" feature. Please Help.
Is a type but is used as a variable error, please help!
Problem with "contactCount"
Generic Extended Unity Event
Help wanted, Trying to make rigidbody rotate in movement direction.
How to make an arrow follow natural arc?
Assets/Turret.cs(52,2): error CS1513: } expected
Data Base - How to deal with equip, monster and player's stat ?
Rotation pad random move
Multiple triggers.
Beginner's question. Slowing down or speeding up rotation
(42,140): error CS1513: } expected
Script firing multiple times from 1 trigger
How to move camera position to object position?
Unity freezing everytime i try to save a tilemap.
Physics based wall running like Karlson
Scripting Issue with Roll A Ball Tutorial
The name 'Path' does not exist in the current context.
Simple Input not working in Update function
My fire1 code does not work
type mismatched
ChangableLookAt
score limit gained?
Target Killing
A bug
Registering to Database but get this error: Object reference not set to an instance of an object
How do I add a block placement/destruction feature?
Multi-Foe Clash?
Unity Coding Help
Idle Timer, see if gameobject has moved. If so, do something.
Cast Rect to Vector4 ?
My memory game takes same cards
Cooldown timer script
Complier error when my visual code says everything is fine!
Fade out and fade in Lights
Help with instantiating prefab
Problem with scripting when creating a dialogue system
mainCamera.WorldToScreenPoint inaccurate
Instance or GetComponent?
How to multiply a transform by inverse transform
Fading objects one by one
My square won't move when I press A or D?
Help with projectile and enemies
help with c# pls
Please Help If You Can
moving from one scene to the next automatically
Is there any way to make the buttons do opposite things?
I cant get my Game Over canvas to take the images off the game display
Firing a bullet (new to unity)
Help how to solve this error?
Unity Particle System, Emission Module, rate Over Time modify via script ...
Can someone convert this code for touch ? I want to do the exact thing but in touch for android
"Error CS1003: Syntax error, ',' expected" (813425)
Character Keeps Jumping
Srites do not receive any shadows from 3D objects in the Universal Render Pipeline (URP)
Help! (708029)
Se requiere una referencia de objeto para el campo, método o propiedad 'Sistemadepuntos.Partida.punt
Help with 2D movement!
Add extra time to slider
brickCount = FindObjectOfType<LevelGenerator>().transform.childCount;
Smooth Rotating object... is there easier way :) ?
A better way to structure my stat system
How To Add Forces To Ragdolls?
How do I make my script trigger when colliding with a specific object
I need help fixing a script
Admob BannerAd Problem
HowTo: Add method to the GameObject class? IE: add custom variables to every instance
How do i fix this? (931167)
Hi a i new programing in C#
I keep getting error code CS1001
My 'falling' animation does not play, everything else works except for that
Changing text through a cursor hover trigger
How to create a list of tiles within a 2D space?
Help with script (691727)
Rigidbody2D bullets flying through tile Palette
How to fix 'public' is not valid for this item
Top level statements must precede namespace and type declarations?
Quality Change Script
OnTriggerEnter ignores any values set after initialization
Help with creating a rolling ball game? (681387)
Help urgently
There is no argument given that corresponds to the required formal parameter 'y'....
Script error (5,0) cs 1525 unxpected symbol 'public'
Destroy one object with script instead of all
Access a bool in " on value change " event ?
ignore my bad
How can i get back the instantiated objects with their tag,positions,Rotations?
Dust trail for car not staying constant while trigger is entered SOLVED
New to Game Dev
Issue when getting a variable from another script.
ECS With Scriptable Object
Camera Boundaries (860515)
Transform.left?
For loop runs a bit even after returning
I need help with the infinite jumping
Top-Down view movement
Need some help! (802119)
Script Values Resetting to 0
Please help! Cant add script behaviour AssemblyInfo.cs. The Script needs to derive from MonoBehavior (746868)
Do you have a sprint script that, when you press a key, it runs;
How to add delay before button can be pressed / code is executed again.
Bool animation stops at the next state on play
Shooting code not working??
C# Errors in Visual Studio that I don't understand
Camera Tilts Left And Right In Stead Of Up And Down.
Error Code: CS1022
Noob question on enemy movement
Moving Parent with child component
Assistance needed in troubleshooting (C#) Quality Scripts
How can I make flipping object position using Raycast 2d ?
Phyics getting screwed up with framerate
Raycast in 2D not detecting colliders
Space Shooter Tutorial Q&A
I can't drag a script into the inspector. Why? [Please Help]
Unable to move player scripting errors
Why isn't this script working? (745568)
Combined meshes not connecting
Wiring Up GameObject in Inspector vs. GameObject.Find
super simple coding help desperately needed
help i have been trying to fix this error for ages and ive gotten nowhere
Input.GetButtonDown returning true even when nothing is being pressed.
Camera not rotating inside IF statement
Where can I place this code in order to correct player movement? (783039)
How to find/Add Game Object transforms to an array at runtime and then check distance of closet one.
Double jump with jump higher when holding button
Object not loading
Script is not working...
Unity randomly deletes objects?
Platformer Player Jittering When Moving
2d rectangle getting stuck after a collision with the player
I'm a complete noobie please help
How to make Raw Image to 3D object
Object refrence not set to an instance of an Object
Enable or disable images from an array
[HELP] Platform corner detection not working with rotation
Unity flashlight issue
After eating fruit sometimes my character doesnt jump
Cannot Change the Size of the Hole in Mesh with Scripting
Error CS1002: ; expected (891641)
Texture2D.SetPixels : "Array size must be at least width*height" but values seems good
Movement sprinting script problems
Help with my "drop system"(loot of enemys)
My battery system is not working and I don't know why!
How to know the force on a rigidbody 2d?
Error Assets\PlayerMovement.cs(12,49): error CS0664: Literal of type double cannot be implicitly con
Need help with my maze
: error CS1002: ; expected
Problem in Update Function (788219)
Help!i want donot effect my script on UI
The referenced script on this Behaviour (Game Object 'Player') is missing!
Making an object Solid
How to enable a component (PolygonCollider2d) On click?
Coding problem (719606)
What is wrong with my code? - please help. (791702)
Random rotation with asset pack jousticks
Singleton does not work as expected
(new to scriping) Button to change object color
Use PlayerPrefs for clicked upgrade button
Dealing with collision in a 2D top down game
(HELP) An object reference is required for the non- static field, Method or property
Setting a 2D Polygonal Collider to Camera Size
How to pause/halt Time.deltaTime?
Click Error
Error: Non-invocable member 'CameraManager.cameras' cannot be used like a method.
Instantiateing Objects After Certain Amount Of Time
test whether the clicked GameOject is not a plane
I have started with unity and i have a few questions
How to Instantiate trail renderer with my dash ability?
hitCollider
Unity Mathematics AABB.Contains algorithm looks buggy
I need help at my reload function
[PUN] Illegal view ID error
Toggle light, working randomly?
code for one button/material change works, but now multiple buttons?
error CS1525: Unexpected symbol `end-of-file'
HELP WANTED - how to make bullets go in the direction of my gun
Boolean gets stuck as true
MissingReferenceExecepition
Missing Mono Scripts for a Platformer
NullReferenceException:Object reference not set to an instance of an object BoxScript.OnPointerClick
unity skinning editor no image
Cant get code to work. on mac with 2017 visual studio. Whats wrong? (I'm new)
Code Monkey Tutorial gone wrong
Scriptable objects bug?
GameObject gets Destroyed automatically. help
Assets\script\playercontroller.cs(5,46): error CS1003: Syntax error, ',' expected help please
Need help on collisions and destrying objects
Need help (837524)
Error: the name velocity does not exist in the current context
Prefab spawns without input
Need help with getting data from a JSON
help me find the error? pls
Can't export to pc
Using Quaternion Euler to slowly rotate towards an object.
Game Over script problem
Play audio after some seconds
IF confition does not work even condition has met, why?
Convert Java to Dex
Null reference, activating function from another script, as it is not shown on the button onclick
Manipulate postion.x and leave position.y to Physics2d
Problem with Idle animation
Problem with Text-based choose your own adventure game
Hi guys i need some help.
Can't move the car
Problem with EnemyWaveManger combined with EnemyMovement
How to make a roof disappear with a collider
Help! (830530)
Assets/Turret.cs(52,2): error CS1513: } expected
Really struggling with the "Object reference not set to instance of an object" error
Issue with input (UI Button/OnPointerDown)
GameObject[]' does not contain a definition for 'GetComponent' and no accessible extension method
i need help with : Object reference not set to an instance of an object
Have seperate data on each Tile in a Tilemap?
ArgumentException: Input Axis MouseX is not setup
Vector3 to Transform as a coin spawn target
Открывается меню от ловли монетки.
Error cs1002; expected
error CS1061: 'HealthBar2' does not contain a definition for 'TakeDamage'
Error csharp
Simultaneous button and function
Randomizing the same animation transition on multiple instances of a prefab?
AI in ECS. What approaches do we have?
Movement code, unfixable error!
New Coder Needs Helps with IEnumerator
i keep getting this error
I think I have an infinite loop somewhere
Character Controller - 2d topdown flipping axis?
how to prevent sprite from flipping, when using transform.right
Best practices for android json use?
Music Player
unintended code output pls help
text is white bars
Help! I Tried But Cant Resolve "Error Code 8803"
Need help creating numbers with prefabs - read details please
making my character weapon turn help!!!
Does not add GameObject to Array Can Someone please help
Please, help me!
Refrence Error
Light Switch?
Unable to load texture from server in iOS
Buggy velocity-augmenting (Fixed)
Unity ScrollView keeps scrolling to the end
Error cs1003, 1513, 1519
Noobie Needs Help - Manipulating a Text Prefab
Unexpected symbol `void', expecting `class', `delegate', `enum', `interface', `partial', or `struct'
Jump Problem (830232)
Compiler errors (802148)
How to use SwapTile()?
increase a certain value ratio
Trying to make a door script, the door goes to wrong position
C# auto change its list length
Object reverts by itself
Unable to draw from decklist, it's random. And I need " if I draw a certain card it removes from lis
Animating the player character during movement
Jump script problems Assets\SCRIPS\Saltar.cs(40,61): error CS1003: Syntax error, ',' expected
Making babies
using System.Collections; using UnityEngine; public class RayCastShoot : MonoBehaviour { public
AddForce issue after rotation of the object axis
How to delete old clones when a new one is added
My Game Build Problems
Error CS1026: ) expected (871252)
Jumping Inconsistent
OnCollisionsEnter2D is declared but never used
I bet, these errors shouldn't be here. Help.
Character controller rotation problem
Error: The namespace '<global namepspace>' already contains a definition for 'GenerateChunk'
mouse and touch input - false clicks
SetActive not working properly
Button.OnClick() is not evoked
How do I fix error cs0246?
The seconde player have trouble with Aim
2D Box Collider Overlapping each other
Getting The Element Int OF An Array
BoxCastAll not detecting if target object has rigidbody
2 box collider 2d on 1 object
Numerous errors? I followed a tutorial but it seems to not work for me
Why does the Toggle Group always reset my default value
Please Help. Why is Unity not loading ALL lines of my txt?
Is Get Component bad within Update?
Newbie having trouble with Rigidbody2D.AddForce
Help with fps recoil
Problem with my Corountine
Need Assistance with Code for Paper Rock Scissors combat game
Rigitbody movement in camera direction
Can't add script component 'GameManager' because the script class cannot be found
Time in between action (dash)
How to fix code making my character not move
ERROR CS 1002
New timeline has no playhead and wont play (893305)
I need help with my script (945267)
Problem with making an object brake
Hi guys, I am lost with the new Terrain 2019+ APIs, layers and textures
Timer Issues (911064)
Script for Selecting all Objects with 'Tag' and checking 'is Kinematic'
(9,38): error CS1002: ; expected and (9,44): error CS1519: Invalid token ';'
Coded Gravity
Transitions between scenes upon button press + carry over items.
Error CS1003 Syntax error "{" expected
UNITY 4.0 C# ISSUE WITH I THINK GRAVITY OR SOMETHINGS LIKE IT
System.Serializable Array Setting Incorrect Length?
Destroy an instance of a prefab when is on screen by pressing a key
One day working, next day its missing some "public" error CS1585
Vertices and triangles for grass in a minecraft clone
Error CS0111 (not a bug)
How to Change color to 4 object and move up and down more object at the same time
Hello , can someone help me?(Please help im a noob)
Rotate/spin object 360 degrees over set time in coroutine
Tilemap Collider not Colliding
Java and return
moving from one side of screen to other
multi-touch
Unity stops responding as I assign texture2d variable.
CS1002 fck problem
How to create a condition for my coroutine
Json File Formats
Mathf.Clamp don't work
Player not jumping on 2d tile map
I need help with scene switching
How to repeat if statement
i put my rigid body as rb but now the game doesnt recognise rb
Array only initialized when serializable[SOLVED]
Error code CS0029 (792892)
Error CS0246 can't solve
Error CS1503 (794961)
Touch Input System having problems with joystick
Endless Runner game-Sprites with Unlit/Transparent shader dont appear in the game mode
Problem with a jump button for mobile
Can't see elements added to panel
Help for a bug!
Error: Cannot implicitly convert type 'UnityEngine.Transform' to int.
2D collision trouble
Issue with Jump
Making a moving object change direction when it reaches a certain position?
Detect collision of an object that is inside an empty object with another object
How to fix: Assets\Game\Scripts\FallOffGenerator.cs(18,71): error CS1026: ) expected
unity error CS1002: ; expected but have semicolon
When i restart the score does not restart
2d world gen
(SOLVED)
Making stepsSounds by using OnCollisionEnter or raycasts ? Optimizations question
CS0246 error (886322)
Why did my object stops colliding when it stops moving while touching the other object?
reload active scene help
Camera won't follow player object of the Y axis.
Fixing Rendering Behind/Below/Above/In-Front for Pseudo-2D Top Down Platforming
Cursed gravity with rigidbody2d
So I just started learning and I need some help
Argument Out Of Range Exception error + Leap Motion
Help with this box
Script Help! (712177)
Error CS0104 Random.Range()
Assets\Tests\NewBehaviourScript.cs(28,43): error CS1002: ; expected
Unity 2D: Destroy Game Object is not working
Help with Unity Movement System (936721)
how to declare coin get in many scenes play to the a main menu or scene shop?
I am using a book to learn unity, and there is some GUI code that doesn't seem to be working.
Player prefs not set to an instance of an object
Getting error Index was outside bounds of array
How to wall run with character controller script
How do I make it so that when my snake picks up a food it gets +1 point added?
I've made an inventory drag and drop screen but when I press play how can I open it and close it
Trouble making my character run instead of walk
Trouble with instantiating
Follow 2d
Whenever i try to rotate my player it snaps back to its normal position
Can someone Help Me with this Error CS1513? The line is 38 . I cant find the problem PLS help
Help (930245)
2d card game
InvalidCastException: Specified cast is not valid. (wrapper castclass) System.Object
ArgumentNullException. Value cannot be null
I keep on getting error CS1585 on "private PlayControls playcontrols;" how can i Fix this?
time.deltaTime problem with my dashing system.
Invoke wont work
Multiple Input If Statement
help me fix the error, error: cannot convert string to system.type
Changing a GameObject By Clicking a Button
2D map generation overlap detection not working
Is this correct for a game manager script?
error CS1061: 'ParticleSystem' does not contain a definition for 'Stop' and no accessible extension
3D Platforms change when jumping
Hey I am facing some error can any help me ?
Having problem with creating a collider
Keeping a rigidbody player on a moving rigidbody surface (top down)
Help! How to make object inactive on collision?
WWW not working in UWP, but it works for iOS and Android
How do you make the plane tilt only by pressing the up and down arrows?
Adjusting a script use right button click instead of moving mouse
How to change this script to touch input
Bug - GetKeyDown not registering
How to fix: Assets\Game\Scripts\FallOffGenerator.cs(18,71): error CS1026: ) expected
Rigidbody2
error CS0266: Cannot implicitly convert type 'double' to 'int'. An explicit conversion exists (are
Double jump error?
Method must have a Return type
Unity.Engine.Debug:Error problem
Why isn't my box collider disabling when I should've already called the right bool in the script?
Soft body not working properly with moving platforms
Assets/PlayerCollison.cs(3,43): error CS1003: Syntax error, ',' expected
AI System Not Quite Working Right
Is my code efficient? (682032)
Finding neighbouring grid points in dynamic Unity3d minigame
Cant move forward and backwards
Calling std::exception in a DLL make Unity Crash
Moving camera “flat”, ignoring it's x and z rotation
What does this mean? (828555)
Collisions don't work with a particle system created via code
First Timer Asking for Some Help!
Can anyone help please
SteamVR Circular Drive with Velocity or Momentum?
Following Tutorial and get error that guy doing tutorial doesn't get
Clock hands
How to stop Player from Infinitely Jumping?
Cannot implicitly convert type float to 'UnityEngine.Vector3 help
Collision with random Sin Line
Problem variable serializable
Exception handling
Iteration
What is this errors and how can it be fixed?
unity 2d Stamina system
"error CS1519: Invalid token 'void' in class, struct, or interface member declaration" (758136)
Show an inactive Gamobject by button
IT NOT WORKS
Message from Nodejs websocket to Unity
I build a calculator in unity, but it can't calculate 2 digit numbers
Help needed to get a return from an event.
Finding parent constraint offset
How do i add collisions to this script?
CombineMesh the UV has problem.
Issue with Mouse Hover Detection
Issues with my Stamina Regeneration Script
Instantiate origin object not accessable after cloning
Assets\Scripts\Title and Main Menu\Audiomenu.cs(12,9): error CS0120: An object reference is required
Coding Question - Scriptable Objects
Generate mesh Issue. how do i fix it?
How to make animations play instantly.
[Android] [Exception] ExecutionEngineException AOT Error
How do I stop a Coroutine
Getting NullReferenceException even tho everything is assigned?
Rotate a cube by dragging it so that it fits on one side
Returning Game Object to Original Position Upon Release from Oculus Touch Controller
Switching postion with Object by clicking it
Error (853653)
Animation/script problem [begginer]
Unable to control character in Unity Game-mode
Cannot move while turning in code
Error CS1002 (876367)
player falling but not playing falling animation
Error CS1001 (938545)
create refraction through 2d prism
AirState sometimes moves to IdleState
i followed a tutorail for this and it dosen't work.
How can I avoid using the Update function in this example?
[SOLVED]Jumping with Character Controller is not smooth
Area of a circle
Cannot read 'light estimation' values
there's a problem with my code
UI change Canvas Panel with buttons right or left
Float math issue
My script isn't working ı'm begınner
Simple thing like rotating a object doesnt work. Just have a look you will be flabbergasted
Stop an event after OnTriggerExit
How to ignore the collusion of Charactercontroller and given collider?
Instantiate Object at the Position of an Object from a List
Collider not enabling through script
Problem with Animator (781586)
Can somone help on my code?
Error CS1003 and CS1026
Error (936009)
Can`t made object move
(SOLVED) Doubt about how to get a string variable from another script
Coroutine was working yesterday but not working today
Joystick Lag and Delay
Trouble with Loading Json Files
How to Find TextMeshPro That's On Another Game Object
Tutorial Error: Creator Kit - Beginner Code
Button Clicks Repeatedly On Initial Click
Issue with instantiated prefab location
Float Not Changing Float On Other Script HELP!
Shake camera effect is not visible through the headset
i cant get this wooooorking :(
Error while using navmesh and raycast to move player from one point to another
How do i change from OVRInput to XR Origin without getting the CS0103 error message
How to use WaitForSeconds when changing animations randomly in Coroutine
Sprite Showing shows ok, but when instatiated the same sprite shows up only in the scene view
Assigning a prefab with script and collisons not working.
Error cs1022 in unity
I don't understand this NullReferenceException
Cinemachine Target Group Dynamically Updating Error
using UnityEngine.SceneManagement; Obsolete Error
Is this code messy
Scripting after I added something that is causing 2 error messeges.
error message please help
[Solved] Nothing is being saved by my custom system
how to connect the circuit by using raycast click
While Loop Condition Does Not Change
Hello, I have come to ask for help with this script that causes me a problem because it has the erro
Speed Changing Power-Up With Speed Controlled in Update Method of PlayerController Script?
Alpa Hit Minimum Threshold not working
Unity Code Help
GameObject.setActive not triggering within scriptable Objects
Class with variable type of that Class visible in inspector
(Can't post on Answers so...)GameObject Instantiate lag on Input, spawns multiple at same time
How to make levels run randomly?
Trying to build a walking, rotating cube, but it just slides
PUN 2 - RPC only works when moving
enemy Structuring for many enemies
when i press play my player falles to the right please help
Issue Altering Video Tutorial
Is there anyway that I can create a List as a property of an object?
My idle and run are active at the same kid how to do it? (819855)
Get Vector3 way points from another script.
Who can help me solve my problem?
Need some help with my code (816262)
How to set Box collider size and offset correctly?
NullReferenceException: Object reference not set to an instance of an object ScoreUI.UpdateScore (Sy
Ammuntion Error
2D raycasting mouse to select items
Procedural Mesh issue.
I want to use RegistryKey in Unity.
Save and load system not working
Method called by UI button fails but works when called from script
How to shorten my code?
Why does killing the zombie break the music? And how do I fix this?
Problems with spawning prefabs due to framerate
Please Help Need Fix!!
How to change the value of ToggleGroup to a string? And how to pass Togglegroup values to WWWFrom?
I need help with coding a puzzle game
Can't Get This Code To Work
Problem with Color changing Code
Idk How To do this
I want the bullet to shoot at the center of the screen
OnTriggerStay() not working with terrain trees
"method arguments are incompatible" i cant solve this error
How to make game play slower when dragging and shooting
Helo pls help me } expected
I need some help with c#
Why does it say that this script is incorrect when it shouldn't be?
How to keep track of the score when the scene changes
Can't make a void public?
Picking Weapon Issue
Stuck on Loop
A code issue
Problems with FPS camera.
error cs 1513 help needed
Есть проблема при прикосновении с триггером фиксируется только Y координата. Как это исправить
Binaryformatter isn't working for save/load function
Using vuforia, I am trying to change the color of the material "InnerWalls" but it does not work.
LookAt with an offset
Coin Collection Doubling Everytime?
Unity 2019.4.23f1 Broke Prefabs and Project - NullReferenceException, ArgumentNullException
object not showing in the simulator tab
How to find/Add Game Object transforms to an array at runtime and then check distance of closet one.
Transform.Rotation
Assets\bullet.cs(18,28): error CS1003: Syntax error, ',' expected can someone help me
Says InputManager has no definition to OnFoot and I fallowed the tutorial exactly as it says
roll a ball noob question
Getting an Error GetComponent requires that the requested component 'PlayerInput' derives from Mono
Wave Spawner Script Not Working (681718)
The pitch control doesn't work at all, I only get yaw controls. help?
Error CS1513 (820351)
Sorry for the inconvenience — topic no longer relevant
What am i doing wrong here exactly?
NEW USER - 2D Player death and respawn
C# Error CS1503
Blobs are Not Appearing
Having trouble with Player moving Left on his own
random point of a gameobject surface
how to make corpse stop moving
Detect a range of variables for 3 seconds (853508)
I have a problem with something like a snake on unity 2d.
limiting rigidbody rotation with c#
Jump (846513)
Target Texture stopping me from pressing buttons in game
How to stop main background music on game over and play the game over sound?
day night cycle
What is the best way to recreate the Spongebob bubble transition?
problem with Static variable
2d script error
Deletes Letters to Add numbers in UI
Adding to ListBox From Array
Tarot Card functionality
How do I disable all colliders of objects all grouped under a single parent gameObject?
I am trying to add running in my game and I don't know what I'm doing wrong.
NullRefrenceException?
Need help with speed increase(beginner level)
What's the issue with this code?
Time.timeScale doesn't seeme work
Error CS0131: The left-hand side of an assignment must be a variable, property or indexer.
Trying to have a respawn script with an array to empty game objects
Problemas con Botones Unity
Can't make my player movement stop after release button
Drawing a line between changing points
Can "Raycast Target" on return Keycode.none?
script with an error.
Cant drab folders or files to different place and cant duplicate gameobject
What is wrong with this script? Help me
Unable to reference player within an instantiated prefab
Looking and moving
Instantiated object physics
Error expected } (832760)
Collecting Coins Animation in 3D Endless Runner
Problem with moving Character Controller (translation of keyboard control to buttons).
Input System 1.3 Phases have changed.
Parse complex json
Why does the game not restart when the following code is used? 2019.1.10.1f
I need help with this code (822013)
Array in OnGUI
What am I doing wrong (822678)
WASD resets mt Y position on input.
please help me with the enemy
Script error (888007)
ScriptableObject array
Im getting a ton of errors from the blackthornprod multiplayer tutorial. help?
Need Help with an error CS1061
Need help Modifying UFO game project
How do i add Surface Manager?
Disable / Enable CustomEditor ???
Trying to Invoke method: QuizManager.SelectedQuestion couldn't be called. Error
how to make a flashlight battery system
Stopping an Animation
Another fool that needs their character to turn in the direction they're moving
How to detect mouse click rate for CPR simulation.
accessing bool from another class not working
Super Noob Here
Help with 2D Megaman Dashlike ability
Convert flip script from rotation to scale
Why Don't It Work.
Force camera aspect ratio 16:9 in viewport
Unable to identify rigidbody2D
Swap 2 objects in while(true)
Change direction of an object 2d
Hello guys, do anyone know what is error cs:34?
Is it possibile to make 3D cube whit box collider a camera button swich four android?
My circle desapear using SpriteRenderer.color
Simple coding issue I am not equipped for. Please Help!
Scripts Won't Run/ no bug just won't run (New to Unity)
How to change this code for different sized sprites in Slot game
unity 2d image render from script
Invincibility and Kill Player after Time Limit
Unity Compiler Error - CS1061
Help, for some reason it said error CS1002 on this line:
Script errors (828688)
The type or namespace name 'ITimeProvider' could not be found
Getting Error cs0103
Move Problem
Error CS0161 (32,24) and Error CS0103 (37,12)
Playtime Counter doesnt work
Health PickUps
Collider does not take the position of the mesh
Error CS1061: menuName does not exist
how to complete this piece of code.
Why are the body parts of my snake separating from themselves and the snake head?
Static variables not accesible
Glitch with Edges
Practice with Factory Design Pattern-Help Please?
How to create a pinned music player in notifications
Help PLEASE
Instantiated object not visible
Need to rotate an object towards mouse click (808908)
Why is my raycast not working ?
want reference of scripts in other scenes
Action game 2D shooting projectiles
Problems with my "Collide and Slide" implementation.
Saving Slider Settings<solved>
load scenes by onclick.addlistener
'float' does not contain a definition for 'deltaTime' and no accessible extension method 'deltaTime'
error CS0266: Cannot implicitly convert type 'double' to 'int'. An explicit conversion exists (are
Help: "reference not set..." error trying to access a list in a scriptable object.
How do I make the pausemenu close when pressing the resumebutton?
how can i press a button and get the sprite to be active and the other sprites inactive ??
So my bullet prefab shows trail when dragged into the scene But not when I play it
Help me (911877)
The type or namespace 'Target' could not be found. Why??
Help.. Please
CS0116 error
Variable Isn't changed after statement that is supposed to
❤️break, I can't find a solution for C# attribute feature!
Angles don't apply
Target Texture stopping me from pressing buttons in game
✪ Assets\Scripts PlayerController.cs(36,1): error CS1022 Type or namespace definition, or end-of-fil
Assets\Scripts\Player.cs(16,43): error CS1002: ; expected
Unexpected behavior - nothing when iterating through dictionary?
Help (724896)
Could anyone help with this movement script?
NullReference issue in Unity C#
Move the camera with an object or not
Value Cannot Be Null
I am using unity2019.4.40f1,I want to use System.Diagnostics.Process.Start ,But I get this error
Can someone help make my character look at the camera direction ?
GameObject[]' does not contain a definition for 'GetComponent' and no accessible extension method ' (784479)
Rigidbody shaking when colliding with collider.
Issue with setting two separate scores in HUD
Switch between Cameras on Android.
Need to change from old input system Input.GetAxis("Horizontal") .. to new input system
Please fix compile errors before creating new script components.
Dragging a cube with the mouse
Invoke just won't work
OnDrop not working
Error Code: CS1022
How to properly load auto generated texture2D
Trying to let chaser to respond when the "Player" get within range but no responds and no errors
Make a gameobject's child lerp its position and rotation back to its parent
"The name 'System' does not exist in the current context"
Does this need to release the reference type?
Setting Cursor Mode In Game
Limiting Turret Rotation on Tank
NullReferenceException: Object reference not set to an instance of an object (940313)
Tips for an absolute beginner
Limit a string or a UI Text
Photon synth for Mobile controller
Error in supposedly correct script
need help with figuring this code out
problem with code
Need help with coding!
FBX export does not include Textures when assigning _BaseColorMap during runtime
Help with Player Interaction in my 2D Game
Can't add .mtl materials to prefabs
Destroy a prefab by Instantiating the same prefab
Having trouble with scripting & inspector
Transform.position to an emty game object
Can't access InputField objects in script
Script for Parallax Background Scrolling Error
unity car script help
Script Error (871693)
Character flying up into sky?
How to make the movement in Vector3.MoveTowards smooth
Script for keycode and animation
I don't know what the error is.
How can I make a save&load for chat messages from ChatGPT API?
error while making shotgun
2D Game Scripting Issue
Error building Player because scripts had compiler errors in the editor (Without The Editor Script)
C# Splitter on Bluetooth streaming data
Super stuck & out of luck - Please Help!
script without mono behaviour
Instant velocity change in physics engine question.
Help with dialogues
Procedural Mesh not rendering at verticies
Assets\Scripts\InputManager.cs(11,13): error CS0246: The type or namespace name 'PlayerMotor' could
OnCollisionEnter works ~30 percent of the time
My Movement script blew up, please help
Error CS1026: ) expected
Need help coding a powerup script
MedianShader Color tint
Fixing TransformDirection for a thirdperson Camera
Vector3.distance or (a-b).sqrMagnitude not working properly
Random jump hight
How to make bullets spray at 360 degrees?
Bomb not damaging player
2D light Not visible in GameView
Error CS1513: } expected (872107)
Having some trouble making a wall jump
Can't add script component because class name is not found but the names are the same
Cant understand how this wouldnt work
Collision with object that would affect different Objects. Help please
No overload for 'Instance_OnSelectedCounterChanged' matches delegate 'EventHandler'
Transform copy
CS1519 Error (832838)
I need help accessing my float between 2 scripts
Limited Mouse Movement
Camera to follow & ROTATE with Sphere?
I cannot figure out why my boolean will not limit my player from double jumping
The name 'Aplication' does not exist in the curre
Error CS1002: ; expected (815467)
Can somebody tell me why is not working this script
Why is my Boolean changing for no reason?
Getting some errors that I can't fix
Objects/Character jitter
best function to rotate to mouse position unity 2d
Camera limit Map
A never encountered before NullReferenceException
Null reference exception (937313)
Finding neighbouring grid points in dynamic Unity3d minigame
Fading UI Text object causes all objects in UI canvas to fade
better way to shoot with RAYCAST
NullReferenceException calling another script
Unity 2d Shooting Right/Left Problem
Can´t overwrite reference to a gameobject.
Camera smooth movement with touch
Physics.OverlapSphere (881534)
Help (709889)
Google Admob interstitial ad not showing + please check my code
i followed a tutorail for this and it dosen't work.
Having trouble with Player moving Left on his own
Error CS0029: Cannot implicitly convert type 'float' to 'bool' (871052)
My Scriptable Objects keep losing data due to a parsing error. How can I avoid this? (748616)
I keep getting error messages when making my new game can anyone help!
I don't get coroutines.
drag an drop script
I got this this error: "Assets\Movement.cs(18,71): error CS1002: ; expected"
Player (Mouse?) Object going through walls
Code review request: architectural solution for a very simple directional sprite system
Making 2D game But my UI script wont work and i havent been able to fix it
Help Needed-Script not running
projectile script not working
Multiple 'Enemy's treated as the same
Activate collider after animation starts
How can I make a Super Punch Out style of movement?
My problem with bullethead
Problem with the Input arrows
Kill all right velocity
Coroutine ends prematurely if called from another script
LineRenderer offset by vector .
camera freakout
How i can reset the Timer , when i get another shield ? -when i get 2 shield they are both running
Need help with a simple platform moving.
Please help me (902737)
i am having trouble in my enemy spawner
Agent won't turn at goal, just goes to new goal before turning
Assets\collision_collider.cs(16,39): error CS1002: ; expected
C# beginner problem- "Type 'Shooting' already defines a member called 'Shoot' with the same paramet"
Bouncing object
Problem with elaborating and errors?
Assets\angle\Script\outvolt.cs(10,9): error CS0102: The type 'outvolt' already contains a definition
start() and update() beginner question
Colliders not working (839839)
NullReferenceException on Slider UI Values. *Stuck
Hingejoint Array going out of range
Help with Script (900318)
I needed to fix problems with the game save -Level & coin Using PLAYERPREFS
Errors 1022 and 1002
Hi, i get the error CS1022 on (6,1) and (22,1) but i dont know how to solve it.
Assets/Codes/code2.cs(29,24): error CS0029: Cannot implicitly convert type `string' to `UnityEngine.
Flipping/Rotation Issue
Can not convert float to int
How to do Force toggle
Fixing ragdoll issues
Help with collision detection on One-Way Platforms.
Sync Weapon Obj.
PLS HELP ME WITH THIS ERROR!
Warning from variable never used?
Error CS1513: } expected (825474)
Bug Issues
I am getting the error CS1519
Object spawn on opposite side
random 2d generation not working correctly
Diagonal movement working momentarily before defaulting to up or down.
Several Warnings
Making Blocks appear from a matrix
Problem to shoot from both sides.
"the type or namespace name "TeaxtMeshProGUI" could not be found
Trying to destroy instantiated object with right click
Multiple sprites using same script
I Need help (898622)
My zombie spawner is dead!
'PlayerMovement' does not contain a definition for 'Main'
Assets\Player Look.cs(24,22): error CS1002: ; expected
Why is the Opened bool not going off?
My code has no errors but it does not work.
Velocity Magnitude
I have error cs0501
Help (886398)
Button usable only once
Health Bar (925391)
NullReference in Play mode
beginner question
Firing buton issue for rapid firing (720847)
Script issue
How can I randomize a child position to spawn a game object?
The script needs to derive from MonoBehaviour
The game doesn't work the same when I reload the scene
[C#] Vector2.MoveTowards Help!
Can't move in the air
Whats Wrong With My Code?
After using Texture2D.SetPixel and Apply, can't reset texture using SetTexture
Orbital Pong: Balls stop in space after hitting a paddle. What do I do.
Get a variable from another script
Need help for 2 script
Player dies when hitting the floor
Camera Follow Code worked in 2022 - spring, didn't work in 2022-23 school year - help!
Jump Pad not working
Script: Play sound and destroy game object
Screen To World Point Help
Having trouble with NullReferenceException "object reference not set to an instance of the object"
Scripting issues (939617)
Null Reference Exception (693400)
Error CS1031: Type expected (414455)
Hello! Im trying to run script but it says Sprite[] does not contains defenition for 'Lenght' cs58
Tractor Beam Effect
how to fix this code error plzzz
coroutine script error
Instantiate returns as null, why?
Need Help Using C# To Active Multiple Objects with one Switch
Making a sprite transparent in code
Update Function in State Machine not stopping
[Beginner] trying to make something go back and forth every 0.25 help please :(
I have trouble making raycast work with tag.
Can't get a line renderer to work on my canvas
Abstract Method Problem
How to start a video by desired time
Rounding Numbers Down
How to unlock the button?
How to get an object from a list ?
Scenes are not Loaded correctly
Having trouble with something very basic, Sprint function.
Move to direction (Android Joystick)
save write CSV file from unity to adnroid device internal storage
Please help me with scripts (again). those errors keep showing up (only stared yesterday)
A bug with my terrain generator
Nested For Loop not working
Object as a 2-way Door
How to jump when key pressed. Edit code
Snapping in VR
puzzle like game
what does this mean
Stuck with acc registration in my 2d mmorph project
Error codes CS1585 & CS1519
curly brackets are gltiching
Where's the infinite loop in these scripts?
"PlaySound.audio" hides inherited member "Component.audio" Fix?
transform position for multiple object
Scoring system problem
Rigidbody2D double jump
C# bool not getting set to true...
UiVertex Help
I Followed a Brackeys tutorial to make a wave system.
Referencing a List in a new thread only working ingame
Need help to move player
Animation Override controller not swapping animations at runtime?
Loading New scene ::HELP::
Problem with Animator Script for player
Problem with shadow component
Scripting Overhead Camera Screenshot
2D camera not following player correctly help pls?
Can you help me fix these errors?
Why is my code returning a false amount?
Unity and UDP
My weapon switching script isn't getting the proper input
Character Run Speed Stacking?
I managed to link two separated scripts but now I'm having trouble with the inspector? (779794)
Trying to affix an object to the player at an offset
Problem with diamond value + score
2 CS0234 errors and 1 CS0246 error
Need help with Scripting error
I have an issue with only one of my triggers being interacted with my player.
Need help with camera.
problem with unexpected symbol error.
Cannot implicitly convert type 'bool' to 'UnityEngine.Rendering.PostProcessing.Vignette'
Something's amiss with my Pong GameManager script
Save/Load Error
my button text doesn't work
I am getting this error Assets\Scripts\MeshGenerator.cs(35,20): error CS1003: Syntax error, ','
Why does it say "CS1002 ; Expected"?
When debugging raycasts in scene view, object moves position when exiting debugging
Error Message Help After Adding NPCs
When I Make A Clone of my Prefab Only The First Instance Behaves As Expected.
onTriggerenter
How can I fix this
NullReferenceException (712969)
AndroidJavaObject Webview NO PLUGINS ONLY C#
Cant create a personal IEnumerator
Unity not getting a fixed KeyCode input.
No overload matches delegate
Bool value cant be passed between scripts
What's the issue with this code?
Sudden movement
Can't load third scene
Error : Extension method must be defined in a non-generic static class
Tilemap composite collider does not stop player
Need Reset help
Error Code CS1026 Can somone help?
Error cs1002: ; expected
Error Input string was not in a correct format.
Problem Resuming Game and UIs
How do I set my public class as a object?
Any idea how to add idle animation?
can you help me
Audio middleware unity package missing assembly references
Cannot publish to WebGL! Help
Moving camera on only one axis.
2D box collider issue
HELP: Black Mesh from Surf Shader + ForwardBase Lighting
Point and click 2D movement
Assets\Gun.cs(13,38): error CS1002: ; expected
how can i fix this error : Assets\MouseLook.cs(12,21): error CS1003: Syntax error, ',' expected.
cs1503 argement 4 welp
Jumping not working (840143)
PLEASE HELP FIX ERROR
"Syntax error, ',' expected" (828423)
Missing Reference Exception (703161)
Trouble Double Jumping
(solved)Will using subclasses too much cause issues down the line?
Script not working (839056)
C# Health and Damage Script help needed
Having problems controlling a animation with script.
Error CS1525: Unexpected symbol `void' (709781)
Strange lerping behaviour
Navmesh remaining.distance always returning 0 on first call
How to call the same method on all objects in the game scene ?
sending email from gmail unity
(solved)I keep getting syntax errors relating to needing parenthesis
Player unable to walk on moving platform
is the "waitforseconds" bugged in the 2018 version of Unity?
"int To Float' Implicit Conversion...
error CS1003
What is wrong? "Object reference not set to an instance of an object"
How to iterate through components
How can I move object smoothly if collision occurs?
(solved)how to change scene after Video has ended?
I am having an issue where the code below just will not work. I don't know the problem
level template but the code puts them all same spot instead of different spots
Unity 3d version 4, respawn script don't work
"Error CS1003: Syntax error, ',' expected" (826093)
Lives Remaining until player is dead returns to main menu
OnTriggerEnter2D not working (785118)
I am making a code to switch between two modules of birds there isnt any errors but it dosent work.
Character can jump when already in the air and i cant figure out whats allowing it in the script.
Left and right movement.
Coroutine to make a unitywebrequest won't execute
Serial.IO.Ports namespace not working
Text overflow to dynamically resize scroll panel rect. Can't get it working. help me please!
Rewarded Ads stopped working
How do I fix my grid update issue? See image for the issue
FormatException Error Please help me out
Changing my old Script to the new Input system!
Quaternion.Euler() returns wrong value
RGB Color
NPC moving in random directions
Unity assign false values to [Serializable] classes.
help n00b with starting after x seconds with shader graph coroutine
Can be deleted
Need help (908574)
How to make a button appear after a few seconds.
Unexpected symbol `public`
ReycastHit2D issue (871939)
A Fix To CS0246?
ontriggerenter not working
Spawning Animated Character on Run Time. Character Blinking. HELP!
My Animation is not working and I don't know why.
Raycast is always FALSE and line cast is always TRUE.... what's wrong here?
Need help! Taking over someones project, need help to understand and where to go from here.
How to use an object in script after being hit with an rayCast
Why cant my script work?
Uhh I need help setting up a character movement script.
do while loops always running
i get the error use of possibly unassigned field 'x' and another one but the end is 'y' how do i fix
Aiming is not working
Trigger issue (928372)
Coding Help (931570)
Int not being recognized when called in 'if' statement
Enemy help (747273)
How can I optimise this code?
How to play a sound with C#
Buttons not working (830451)
HOW TO FIX IK PROBLEM (HELP WANTED)
Not able to figure out a bug with my chess game
void cannot be used in this context.
Child collider not triggering after setActive true
Scroll View scales prefab unintentionally
Unity throwing Null reference error, I cannot find the reason. Help please.
Input.getkey code not working
Need help with Player Prefs and Highscore
Is there a way to check if you are not colliding with something in a script
Stop Finding another target if there's a target present
cannot convert from 'UnityEngine.Collision' to 'UnityEngine.Rigidbody'
LImit Camera rotation
delete this thread
Pls how do I make objects spawn of the screen and move to the centre in 2d.
Need Help Making My First Jump Script Help Would Be Appreciated!
How to collider cast in a direction until hitting an object?
How do I implement rapid firing into my pistol?
Tower defense, torret rotation for sprites.
How works variables on class and functions in unity
if player is jumping under a tilemap block the player cant jump anymore
Reycast 2d Unity
[Solved] About JsonUtility
How do i assign data set to gameobjects from JSON
If statements not triggering yet there is no error
Can somebody please tell me why this doesnt work? Trying to add a speed power up
Im trying to add jumping but it doesnt work
How i Do random rotation?
error message "assets\playermove.cs(7,35: error cs1026:)"
Como coloco animação do Animator no Script
Auto Gun Fire
Can't move the camera vertically
enemy teleport
Need help (804268)
VS2017 swears by the missing Directive
How to add rotation to a movement script
Collision Distruction
SaveGame, it's not saving the player's status it just resets the values in the loader
I need help with some coding
how to instantiate two different enemies
my scripts aren't working
error CS1061. please help
cs1002 ;expected 12,33 error
Script Error for Assets
Hi! I did exactly same way this
NullReferenceException: Object reference not set to an instance of an object (863581)
Transition Script Sample
Arduino Joystick doesn't work when a new scene is loaded
Collision is sometimes not detected.
New to Unity and require some assistance
Quick question of an enemy shootin an object
How to make a Instantiated object forever move along the z axis unity3D
Subclassing not possible ??
converting touchscreen into mouseclick input
Inheritance and Update()/Start()/Awake()
Help me update the code for the event
Error CS0501 (859673)
PlayerPrefs is not saving the highscore, whenever i start new game the highscore updated will be 0.
Triggers (861453)
NEWLY BUILD APP CRASHES BECAUSE OF TRANSFORM.FIND()
TMP (Text Mesh Pro ) color changing through script
Code for Dropdown menu with nothing selected on startup
Character phasing through Tiles
Help!!! I can't figure out what is wrong with my world gen script
Can I ask questions on here?
Creating a coin splash but facing problem with collisions
Help Needed! Why is my raycast not working?
error with movement code
3rd person controller/camera
Weighted inventory Issues
Will Pay For Someone To Solve Ground Check Issue
Timed repeat.
Parent won’t (de)activate children
I keep getting this error for my movement script
Create prfab when pressing a button
High Speed Objects Pass Through
Missing Assembly Reference (686510)
Help my code isn't working
What do i do i was doing a tutorial but i got a error
FPS Camera Leaning script
Player Movement Help, Been trying this last 2 days and have been helpless
Do games made with Unity using C# are (dot)NET dependant?
Why does this work? (874597)
Object Reference not set to an instance of an object (926972)
Difference between LoadAssetAsync using Task/await and by using yield
Help with Scene Transition
Error in PlayerMovement.cs
Number Guessing Game - Player able to play endlessly
Want to impliment a Placing Order Minigame but don't know what to do
what wrong? can you help me i cant find porblem
how do i write the event part
how fix Raycast no working in scene
Spawn object in certain zone (2d)
Issue with referencing a move script after gameobject is instantiated
I keep on getting an error that says Assets\Coin.cs(31,6): error CS1513: } expected I dont know what
Need Help with Destroying Targets on Click
How to make bird move constantly to right and jump when clicked?
Why cant my script load? (783943)
how to I set a object reference?
I have a bug with my character, how can I fix it?
Problems changing object(Player) position on scene load
How to compare 2 scores from 2 different Texts (GameObject)
Error CS1010
Help with the spawning
Admob Interstitial Does not Show Up - What's Wrong with my code?
Dragging UI with Mouse
EnemyFollow script doesn't work
Hello guys, do anyone know what is error cs:34?
Question on list collection type
Mining system on Unity C#
Disabling audio and trigger -issue
Creating a second pistol in the left hand when the one in the right reaches low ammo
The name 'bullet' does not exist in the current context
Input on player controller not responsive
regulable jump
Need help/tips to create a very VERY simple inventory system.
My playerObject is stuttering on barriers! Is there a FIX?
No overload for method 'Play' takes 1 arguments (807624)
The correct way to change Transform.localScale
Why my rigidbody fall down very slow?
Compiler errors alle the time :(
cs1002 error how do i fix?
Game has error messages about "PlayerMovement" in script
Help Needed Cannot Jump 3D Object
animator not being effected my script
Character moves sideways
Help with powerup
self made scripts don't work
Rigidbody (782867)
Movement Help (869996)
how to create a speedometer (car game) ?
Cannot Implicitly Convert 'TurretAI()' To 'TurretAI'
Health not decreasing
Please Help (787238)
how can i make an image appear?
error CS1513 AND CS1002
Please Help Me with my code, it says there is a compiler error but i just cant fix it, line 66,118
error CS0103: The name 'velocity' does not exist in the current context
Im New and had a CS0246 Question.
CreationTime, what to use, int, float, if I want to write it in another method?
PlayerMovement Script I made isn't working!
Complier error when my visual code says everything is fine!
Disabling/Enabling a GameObject When a Button Is Clicked
Issue with correctly positioning player to sit on chair
My buttons only work if pressed twice
Open and Close a door with a press buton
Setting Audio Clip Length Unity
Movement Problems (899218)
Assets loading over and over on Scene Load?
RunTime hole
Value Change With OnCollisionEnter
i neew help with error. Assets\Stamina.cs(47,25): error CS1001: Identifier expected
Problem With 2 connected scripts
Help With Mouse Look
Queuing Input Behavior Running a Dequeue twice when multiple keys are pressed during the same frame
Crouch Code Not Working
Turning Camera And RigidBody Movement Don't Want To Work Together
[Unity 2019.41of1] C# 2D Galaga Clone Project
Release Drag
StackOverflowException : The requested operation caused a stack overflow
MissingReferenceException: The object of type 'AudioSource' has been destroyed but you are still try
Throttle and Inertia for rigidbody (airplane)
Instancing cubes and coloring them in Unity (c#)
Problem with a gameObject's box collider when resizing ??
input not working (pls help)
Error #CS0116 (New C# and Game Dev Question)
Scoreboard error CS0201: Please Help
Spawning rocks
Control Animator of seperate GameObject
Issues with my Stamina Regeneration Script
Error PlayerSpeed on the character please help !
Want to move object slowly to where the mouse clicks (807880)
Help with adding text to "Kill volume"
OnTriggerEnter2D delay in triggering
Trying to draw gizmos, what am I doing wrong here?
Work with pdf file in unity !?
"Once the pop-up is off, it does not show up again." (785054)
How do I get audio to work?
Animation stops object movement.
i just started with unity and im getting errors while making a c# movement script
Please help (903767)
Script Moving Problems
What's the difference between these two codes?
I need help with velocity 2d
Working on a 2d platformer ran into an issue.
Respawning after delay in C#
Error CS1026: ) expected (828720)
Gravity not working when moving
Assets\scrips\NewBehaviorScript.cs(7,35)_: error CS1003: Syntax error ',' expected
Cloning a Sprite
Help with cloning gameobjects in certain positions.
How to wait for OnTriggerEnter to activate on an instantiated object?
Sibling classes within MonoBehaviour?
Move different object on the same axis in correlation to another object's axis
Hi I need some help. Need Help WIth Inventory System and Using Items
Wave System Delay
Weapon Recoil via c# script
aiming feature
Can someone explain the difference between these two codes?
Can I repeat a coroutine
Changing a variable at a certain object size.
Dialogue system IndexOutOfRangeException: Index was outside the bounds of the array.
Help with Error CS0131
i take this script from youtube and he take me to some position when i click how to change it
Change material float overtime
Pong AI HELP !
Moving Object with Accelerometer stops after a while for a Android LWP
2D shop UI (Help Needed)
how do i make a win platform
Time and Animations
Method is being called but prefabs aren't updating.
error on spawner and the destroy object does not work
Help please! Error: NullReferenceException: Object reference not set to an instance of an object Inv
Cant access other gameObj's function from script (C#)
Game Score Not Updating in UI(Canvas) (819129)
disable collider in children doesnt work
Ecs And JobSysyem (758324)
How to move a Rigid2d character in horizontal axis?
MissingReferenceException: The object of type 'ParticleSystem' has been destroyed but you are still
Script to reference GameObject not working on Mobile test?
Rail Grinding Help
Random string Percentage/Chance?
2D Sprite Blinking
Displaying GUI Text with raycast problems in c#
Index Out of Range error
Error Occuring
OnTriggerExit help?
How to make camera not change rotation when player looks in forward direction?
The script dont inherit a native class that can manage a script.what to do?Here is the code;
Unity keeps coming up with the message Syntax ',' expected. How do I fix this. Here is my code:
Acceleration in Character Scripts
Close on Esc. Key?
Space Shooter Tutorial Q&A
Passing data from one script to another
error CS1061: Type `float' does not contain a definition for `text' and no extension method `text'
Help with Job System and NativeContainers
How do I rotate my player transform to peak left and right?
Unity Gear Vr Object Interaction
how do i fix this health bar?
Shader issue.
I didnt found the solve to this error...
(Mobile) My attack button won't work
Help Please lol
ArgumentException: Value does not fall within the expected range.
Help with the code (826905)
Collision2D.GetContact not returning correct position?
How can I get my player object to go in the same direction my camera is point
Can anyone help me with this the exact error is this
im getting the error Top-level statements must precede namespace and type declarations. hers my code
Subscribing to an event in ExecuteAlways
2D Door interact (teleporting)
Need some help! (714752)
How does unity thread work?
i have a problem when i press play GameObject gets destroyed
can someone help me with my code
Error CS1001: Identifier expected (736842)
Character controller jumping
NavMesh.SamplePosition always returns false? Why?
Value Change With OnCollisionEnter
I don't know what's wrong here
if (Input.GetKeyDown("Shift")) ERROR!!!
How to solve NullReferenceException Error
Smoother bullet travel
why is jumping not working please help
enemy moving weirdly with terrain
PUBLIC Stack Overflow Tags Users Jobs TEAMS What’s this? Free 30 Day Trial “CreateTextureFromCVText
000
Can not seem to make this script work. Can some one help me.
Cant play the highscore sound properly via ScoreManager Script
Need Help - rock, paper, scissors
Need Help with infinite background skipping.
Noob help - restarting scene after gameObject dies
Error CS0246 (843867)
(I'm a beginner) I don't know how to fill some variables while calling the function
How to make the illusion of movement in a vertical 2d runner
Convert array of images into JSON file
error CS1010: Newline in constant
Why doesnt this work? (854544)
How can I rotate a RigidBody so it is facing the direction it is moving using velocity to move?,Rota
Pet (881720)
Enemy Health Not Decreasing
Bird critter help
help error } expected and Type or namespace definition, or end-of-file expected
OnTriggerEnter2D not working (844379)
Timer & on Trigger Events 2D
Prevent diagonally movement - C# [resolved]
Parse complex json
Continuous muting issue on all scenes
Help, Object Pick up script not working 100%
Issues with ScreenToWorldPoint
world streaming not working correctly
Detecting rotation/ spins
Assets\script\rScript.cs(39,16): error CS0019: Operator '>=' cannot be applied to operands of type '
Can anyone figure out whats wrong with this script? It keeps saying NullReferenceExeption.
In game menu problem (beginner)
How to store TextMeshPro text into an int variable?
How can i make my character jump?
I can't change the text inside the "TextMeshPro" component via Script.
How to reference an instantiated game object with code? Or, something else?
Not all code paths return a value (855192)
Destroy On Collision (860928)
My player not Jumping while moving right
Help with unity (879547)
Raycast going haywire!!
Tilemap WorldToCell and CellToWorld not working
Diagonal speed limit in input manager & how to paste number of lines when ctrl v?
Movement Problem (885436)
How to stop a prefab from moving once raycast hits collider?
dynamically fill dropdown unity
How can I stop running in place when I hold shift?
NullReferenceException: Object reference not set to an instance of an object (720378)
Playservices not working
Snap to grid (829084)
Networking Weird Receiving async sometimes stops at last 1000 bytes.
NullReferenceException: Object reference not set to an instance of an object (627679)
i cant attach my player model to fixed joint rigidbody
Error in pun2: RPC method 'ExitText(Boolean)' not found on object with PhotonView 1001. Implement as
Maybe is bug? input field leacy and tmp
Building ramp physics
Help please, problem with ObjectPooling
perdonen las molestias pero hice lo mejor posible tengo 9 años ;( por cierto es lo mismo
Class Instances clarification
Trying to rotate an object (Cube) smoothly in 90 degrees by mouse/swipe directi
I keep receiving errors when I look at certain objects with a script on them. Please help.
Can somebody help me with jump script?
2D Character won't jump. No Errors.
relative, world position question
Enemies in "Save the Doge" How does it work?
Need Help :( Unity 2021.X Multiplayer Networking Movements.
PS4 controller not braking car
I cannot change Transform Values for a 3D Cube
Need help with Raycast and Platform effector
Multiplayer desynchronize when grabbing an object by code
i need help,i want tu conect these two sripts and it is not working plese help
Finding a variable or Gameobject in a Array of Scripts
VR position tracking
I got a few error messages and I'm pretty confused
Error CS1585: Member modifier 'public' must precede the member type and name
Level restarts when player hits the ground problem.
How can I avoid using the Update function in this example?
Character Controller works in one Unity project, but not another
player moves when tapped anywhere on screen
Buggy velocity-augmenting (Fixed)
Error from gun.
I can't use up or space button to jump with the movement script.
Issues with camera shake upon collision with walls (corner of a room specifically)
stack overflow exception, have no idea what and where!!
Scene "Is Loading"/ "Not Loaded" Bug
'An object reference is required for the non-static field, method, or property' error
Camera Movement (Lagging follow Car)
2D Array Result Checking?
CS1503 C# Argument 2: cannot convert from 'UnityEngine.Vector3' to 'float'
Why am I getting Null Reference Exception inspite of checking if the Object is not null to execute s
How to call this function
2d Space Shooter Movement Problems
Hololens-xbox360s controller for drone movement
Flipping Function in a Charade Game is Buggy
Trying to make kinda smart turrets but they are very inconsistent.
NullReferenceException: Object reference not set to an instance of an object (764063)
How to detect if object was escaped form the screen?
audio music player with time delay
Cannot implicity convert type 'UnityEngine.Collider' to 'UnityEngine.Collider[] error
Help beginner trying to make something
Lifting an object on the camera
movement does not work
Need Help with Katamari Object Universal Identifier
Having trouble with my scoreboard script. Not sure exactlly what the issue is.
Trying to make a mobile game energy timer that works when the game is closed/unfocused
The reference script on this Behavior (Game Object 'Sci-fi_character) is missing
Free Roaming AI Facing Direction It's Moving
Problem with flipping sprite.
Player animation based on mouse position
Errors CS0246, CS1003, and CS1031
Motion Script
how do i fix Assets\Scripts\Hello_World.cs(10,27): error CS1002: ; expected
Character Directon Change while moving on a Tilemap (grid)
Prefab not anchored to the plane if the scale is big unity+arkit
I do not know where the error! Could you help me to check the two scripts, please?
Flashlight (824273)
Adding or Multiplying by int
my code wont let me move >:( (p.s. i have two scripts)
Need help with third person character controller entering a car
Help using event system to sense touch input on gameobject
error CS1002 ; Expected
Using WaitForSeconds?
Building save system but getting error CS0029
I need help with errors (820655)
Can't translate this javascript code into C#, can someone help me?
Script (790126)
If statement ignoring conditions?
Change Speed Based on Slope Angle
I don't know how to move smoothly an object to a fixed distance.
NullReferenceException Error!! Cant Fix It :(
Need help with my maze
Accessing an updating variable from another script for UI
OnAnimatorIK() stopped working after Unity update
Can't get variable from another script
I need help with 2d vectors always detecting an object
error CS0029: Cannot implicitly convert type 'UnityEngine.UI.Text' to 'float' . Can someone help me?
unlock level based on level achievement
I cant seem to fix this one error can you help me
A very simple copy of Pong is lagging a lot, please help.
Jump Script (845933)
IndexOutOfRangeException: Index was outside the bounds of the array. (898267)
Unity error CS0103: The name `InputManager' does not exist in the current context
I have a problem (935903)
Instantiate probleme
please Help. Cannot Accelerate and deaccelerate.
(new to unity) i have sound code for deleting game objects but it says there is compiling errors
error CS1061: 'string' does not contain a definition for 'coinCount'
I need Help I don't Know why this is not working im new to Unity So i may be under looking something
Need help to increase magnitude of joystick
Mouse script dont working
When object A hits object B number go down
Touch on Android works bad
how to fix this code error plzzz
could anyone help me please?
Time.timeScale doesn't seeme work
C0246 error
translation of cube
Space Shooter Tutorial adding score
Play animation on collison
Unity Stops working...after i clicked play button and and spawner scripts active
Question About 'Accessing' Rigidbody in a Script
keyword public not working
Script only affects one prefab instance.
Why my rigidbody fall down very slow?
HELP! cant save player position with php to sql!
Updating 2 TextMeshPro UI elements from a script
Weird error message that I cant seem to fix
Setting GameObject via script yeilds unwanted results
if statement bool from false to true
Code review for a beginner Arknanoid project
Why gameObject.SetActiv(false) is not working?
No scripts being included in builds
CS1002 25:31 Expected i need help :(
Unity freezes when trying to change transform.position in path
How do I make my 2D game end?
"""SetDestination"" can only be called on an active agent that has been placed on a NavMesh." (877698)
ArgumentOutOfRangeException: Index was out of range. (833888)
How to reappear a disabled object
Help me! (870324)
Help Needed: Issue with Items Not Being Picked Up After Save and Load in Unity,Thanks !
The referenced script (Player) on this Behaviour is missing! The referenced script on this Behaviou
After ad is played, it loads 4 more?
Help me (883132)
Score doesn't exist in current context
Player system blocks use of Menu?
New ScriptableObject in Runtime.
Hopefully super easy physics 2d overlapcircle question
Second hit transform - raycast never find a target.
Unity not recognizing button press
How Can To Make Code, When Timer Ends Direct Change To Scene Game Over.
Player still walking for a second after the button is no longer pushed.
My Blend Tree Velocity doesnt seem to move and also my character does not follow my buttons.
Save/load an increasing variable
Name Multiplayer
How to make object point at mouse?
My character jumps but only once.
IEnumerator doing something wierd
Need help moving towards players position on creation of bullet
Ecs hybrid : A ComponentGroup Array can have up to 6
Exporting Unity Model to FBX NullReferenceException not set to an instance of an object
[Solved]Player Prefs stops working at double digits?
Help With Side to side jump game
compass.true Heading is not acurate
How to make random obstacles and move it along the platform??
Please Help Me with my code, it says there is a compiler error but i just cant fix it, line 66,118
{SOLVED} calls functions too many times
unity stucking when i use While repeat structure
Error CS0118 (913589)
cs1002 error how do i fix?
How to change speed of all Surface Effectors
NullReferenceException (834677)
what is wrong with this script?
Displaying an .obj file during runtime over the network
Inspector position does not match Debug.Log
Disable midair jump with ontrigger colliders
Smart flashlight
How to store iOS startup custom scheme data in NSUserDefaults to read from Unity
Please... HELP MEEEE!!!!
Objects from list aren't removed - why?
I build a calculator in unity, but it can't calculate 2 digit numbers
self made scripts don't work
warning CS0642: Possible mistaken empty statement
[SOLVED] print and Debug.Log don't working
I think my transform.localScale doesn't work
Array Out Of Bounds
MissingReferenceExeption
getting error Ambiguity between 'IntSubtract.intVariable' and 'IntSubtract.intVariable for 9 scripts
help me please. error cs1001 and cs1002
Speed Diffrence Between Editor and Build Version
CS1002 fck problem
Losing My Mind: Invalid Token (;)
How To Put Gameobject onto Object on awake
HELP with applying scripts!
was ist der fehler mir wird immer error cs1002 angezeigt
Ball stuck using FixedUpdate
Implementation in C#
Red Underline under final curly brace?
Get Component change color not working unless using color.x rather than ( 2f, 2f, 2f )
Cant destroy with Destroy(gameObject);
Spawn objects only once
Brackeys fps character controller not working
script toggle
Why transform.Translate(0,0,1); is doubling every frame?
Rotation continuing after key lifted
error CS1001: Unexpected symbol `{', expecting identifier need help :(
Fuffff quiz game, lets stop button selection after selecting right or wrong button :D
My Character isnt Flipping properly....HELP!
Need help with melee module
Need help with error CS0111
AR Foundation Prefab placement
if statement always uses else
Object refernce null but its suppose to be null;
Triggers. Creating and attach to objects
Is it possible to install multiple tiles with the same direction on a rule tile?
Need help to change my grappling hook mechanic to buttons only?
json data help
Help my code isn't working
Mesh vertices appear in a wrong position
So I changed the script as the tutorial said and I lost the ability to move the character, any help?
Dot product and Raycast.
My button keep working even when I deactivated it
Error CS0119 (679302)
Shoot raycast2D from player to mouse
Unity tetris
[SOLVED] SetActive prefab??
Im mr.errors :( (error CS0103)
I get errors... Need help fixing :P
Help with loading scene in unity 2021.3.21f1
how to make corpse stop moving
Need help with melee module
Error CS0106: The modifier 'private' is not valid for this item (902891)
i keep getting error: Assets\PlayerScript.cs(14,49): error CS1002: ; expected
why does my 2D enemy fall to the ground slow but my player falls normally?
PlayerPrefs NullReferenceException error
How can I move a second set of UVs on an instance of a Skinned Mesh Renderer (not the sharedMesh)?
Why in gods name does this not work?
Mam problem z błędem CS0116 w tym skrypcie
what's an yield keyword
Assets\Scipts\PlayerController.cs(5,19): error CS0116: A namespace cannot directly contain members s
Hit A Wall of Incomprehension - classes, instances, pass by reference
I have some problems with my Script about fps D:
I can't play my game
Changing Texture of Window Asset (2 part asset)
How Can I trigger a particle
UI ocunter not updating values.
Issue to add a non-mono instance of a class to a list
3D custom physics raycasting player
help my 2d character jitters when up against the wall
I'm getting this error: the modifier public is not valid for this item
C# beginner coding issue
[HELP] Trouble with simulator game script not working
Particles will randomly not appear in the Game View
Multiple Game Instances
How to prevent object from rotating?
How to restrict 2d rotation
Destroying Clones Simple Issue
What is Recovery GameObject
Keep getting NullReferenceException error (Scripting with ObiFluid)
A script that ignores a bool check
Need help with a change in code to fix a float/bool error
Error movement.
I need help with this script on turn based attacks
Unity won't allow me to drop reference into instance
Unity C#, Game 2D
Wrong timing on animation + sprite flip;
Object reference not set to an instance of an object (851741)
Good code for data saving
Does not implement interface member error
Timed Buffs
Jump script not working (806943)
Game Master Error, Missing Namespace
animator. setfloat doesnt exist why ?
PlayerController, movement by transform?
PlayerPrefs is not saving the highscore, whenever i start new game the highscore updated will be 0.
Error (903820)
Beginner Coding problems
Raycast gun problem
Persistent code linked account
Navmesh issue help please..
Code error (827652)
Cant change float variables
gameobject.find not working
Having trouble removing Error CS1729
Connect 4 win conditions
Error CS0118 (903945)
Color Change in Object not Getting Detected
How to do custom Sorting in a List?
When spawning object the object is its normal size for a split second
*Suddenly*NullReferenceException: Object reference not set to an instance of an object
How to make a script where after a certain amount of collectibles are collected UI appears?
Basic In Game Pause Menu Script Problems
Help needed with basic script
[Unity 5.6.3] Blur shader not working on UWP Black screen
Which way to choose to design my weapons system?
Noob Coding Help! :P
Error CS8025: Parsing Error.
FOV Script
MathF.Infinity error
How does someone go about interacting variables from two different text classes?
how to change this Script only move in x position?
Looking for help with adding listeners to buttons
transform.eulerAngles is always setting rotation to 90 degrees from a variable
So I wanted to make another for loop to destroy my blocks one at a time after others have been made
Need some help adding left and right movement to this script.
delayed countdown timer
Point of view moves without keyboard or mouse input
error CS1002:}
Understanding Code
Scripting not doing anything
Fast moving objects glitching through corners even with continuous detection turned on.
monobehaviour error
Using clients to do pathfinding calculations
Open Dmx-Interface implementation - how to?
Hello need a tad bit of help with movement
Noob Question about classes and methods
&& not working?
I am unable to add scripts to objects.
How to put entire game in the safe area?
How to separate enemies from each other in my top down game?
NullReference (930721)
Cloned object collide
RPG game Ending Turn wont show under ONClick(button)
Can't make a sprite be disabled
Assets\GunController.cs(54,10): error CS1513: } expected
Player not in position.
Clarification on cyclical list's
Slider function
SIng up button not working
How to shoot a projectile from a weapon to the cursor!
How do I make the player rotate towards the moving direction?
Scripting define symbols not working
determine distance
C# Error: CS0111
Clicker Games Upgrade button doesn't work properly
SqLite database problem during build and run
What happen with my code?
Random Scene Change but Scenes Appear only once
I'm getting the error Top-level statements must precede namespace and type declarations.
Problem with applying RigidBody2D
Error CS1001: Identifier expected (736842)
Rigidbody and rb aren't working
How to correctly setup 3d Character Movement in Unity?
I have a problem im very stupid new and i dont understand it
Saving and Loading XML File in IOS creates Problem
Question: Why Won't My Object Move?
Help with a jumpscare script
Coordinate Systems?
how to declare coin get in many scenes play to the a main menu or scene shop?
Rotation Position Not Working Properly
Unity Jump Script
problem with my scrip
Detecting if my object is NOT Colliding with anything?
How do you create a 2D turning Animation not flipping Smooth Script
How do I make my player remain crouched when an object with a collider is over him?
Assets\Scripts\HealthController.cs(22,49): error CS1003: Syntax error, ',' expected
HOW TO FIX .... IS INACCESSIBLE DUE TO ITS PROTECTION LEVEL
NullReferenceException: Object reference not set to an instance of an object Error (869358)
ReycastHit2D issue (871936)
Affecting velocity on certain axes
Keyword `void' cannot be used in this context (458998)
my variable doesn't reset it's value
On Start
Terrain not having different terraindatas
How to make management on Android
Hey, I want to make a bullet go forward and display a Trail
Gun, if i press "shoot" key during shooting it will shoot again when the animation ends
Can't get serialize field to work.
How do you save variable values in custom Editors?
Unity suddenly stops responding when I put the Ground tag as the GroundMask and press play.
Beginner scripting not working.
can someone help me with my code
How To Set Opacity Upon Mouse Click
Combo chain script
Dont quite understand whats wrong with this camera switcher c# script
WHY THIS CODE WORKS(SWITCHKEY)
problems CS1519, SC8124 somehow all errors are in one line,pls help( if(int collisions) = 1f; )
Void error CS1002
outline with line renderer
Bullets when shooting turning 90 degrees in 2D game.
I need help with this code (737577)
How Do I make something "looked equipped" by my player
My throw script is not working
Kindly delete this thread
Physics2D.Raycast not working (867662)
dubug line works, but the others won't
RTS Camera Movement Problem
Installing adaptive performance on the unity editor
Am I using PlayerPrefs wrong?
Collision not creating new object
Change this code to Vector2
I saved my script last night and it was working, Load this morning and it isn't working anymore.
Can you cache Camera.main and/or other gamecomponents in a lambda expression?
Jump Delay
Need help to make my script easier!
How To Drag Object With Only Input touch=1 and rotate it when touch=2
Time.detlaTime
Creating powerups by Using script to copy script to another object?
Error C21002, Help
How to change the size of an array?
Make camera follow different gameobjects
Game object isn't added via one class to another one (Navigation bar class)
How can I make enemies spawn at a random spawn point object? (924936)
HELP! An object reference is required for the non-static field, method, or property
cs0117
Adding material
Can anyone please help me fix the CS1529 error in visual studio, I am very new to this so I am quite
[Just Started] Rotation Issue
Mouse not working, flappy bird.
"Animator is not playing an Animator Controller" error. The animator is activated btw.
About how to escape from the water surface
After ad is played, it loads 4 more?
Can't get the camera to rotate with the player
Attempting to make an ease in effect for a Vector3
Having trouble destroying children instances.
"The left-hand side of an assignment must be a variable, property or indexer" (870881)
Unity "No MonoBehaviour script" Run impossible
Problem with moving (919913)
I keep on getting error CS1585 on "private PlayControls playcontrols;" how can i Fix this?
How do I set a position based on a diffrent object
This post is Solved (681428)
How to switch between scenes?
how to structure multiple units with different unit abilities.
How to fix Compiler errors?
PlayerPrefs not being saved?
One Script Overriding another? Help.
Game object passes through walls
[SOLVED] Loading localization (Addressables) fails in Android
error CS1061: 'float' does not contain a definition for 'time' and no accessible extension method 't
Problem, 2d topdown Chararter Controller. RigidBody2D.velocity movement.
How do I add start/finish timer to roll-a-ball
Help debugging "Internal: JobTempAlloc" warning
Vector3 ProjectOnPlane issue
simple third person script?
"the type or namespace name Transform could not be found" it also says that for MonoBehaviour
HELP NEEDED error CS0106: The modifier 'public' is not valid for this item
Problem with startPos
i need fix this script please help this is my error: Assets\ThirdPearsonMoevment.cs(23,73): error CS
How to slow down game play
Having Skins that Change Particles Also?
Custom Editor scripting
Coin and Life counter
Need to scale the size of textcontainer after instantiating it as a child. Scale up and down using l
Me aparece un error en ciertas líneas pero en el C# esta perfectamente
Struggling to control rigidbody2d constraints from script
Need help with updating UI based on object pick ups
Problem with scripts (815937)
2D Simple direction based on 2 Vectors
Trying to store an object reference dynamically during runtime to use buttons to rotate it.
How the hell this is not working ?
Beginner game dev here "No overload for method 'Move' takes 3 arguments"
Different Menus
How to Rotate an Object and Keep it's Rotation?
position doesn't change.
How to Implementing The Command Pattern?
svp
Spaceship script bug
Need help I am a Super Noob, I don't know code so well, I can't get my character to Jump.
a cube is visible in another cube
Can I Pack Material texture to sprite atlas?
my code has an error saying Input Axis Sprint is not setup. what do i do
Why is this bool not changing to True?
Player Bounces Down Hills
How to make powerup add seconds to countdown
Localization loading async
The modifier 'private' is not valid for this item (781888)
My idle and run are active at the same kid how to do it? (819786)
Help please (759335)
How to use different functions in for each - loop
Objects on Android screen does not follow fingers quickly enough - matter of code?
First Script Issues..
scripts to work together
Why this code isn't working?
Error please help (822275)
doubts about script and animation in motion
Hey! I need help with my Colliable script! Plz help
Hey Guys Can U Help Me?
Quiz Game scripting help
wheel.wheelCollider.motorTorque
i need Help Please It says Assets\RotateWithMouse.cs(5,45): error CS1003: Syntax error, ',' expected
if statement bool from false to true
Trying Making an Agent Patrol Between a Set of Points
what is the best way to implement this basketball script?
Why am I unable to move? (I am Making a Top Down RPG)
Quiz Game Scripting Problems
Code organization
Player Movement (Unity 2019.4.18f1)
Timer causes trouble
JsonUtility returns null
search regression: erroneous result (IN-18398)
I Need Help! (I Want My Character To Lean Forward Smoothly)
how to make a directional light that casts shadows?
I have problem with vectors
Trying to use a plot library in to a unity game in Linux, but get error
Help adapting old Device-Based Code to Action-Based?
Problem with pausing when the game is paused
Input stops being received after pressing key multiple times or holding key down
[Solved] Transparency question
Character and Camera.
Reading TextFile Line by Line from "Documents"
Touch controls (886019)
scenes not changing in unity when my guy hits the collider
The cs1022 error
Bullet not getting Instantiated when destroyed - Unity2D
NullReferenceException: Object Reference not set to an instance of an object (883859)
Script Error for Assets
2D platform character not falling correctly
Engine keeps freezing due to a do-while loop
How can i fix this error..... (Very new to C#)
Need help with rotate lasers toward mouse (944762)
I need some help with collision
"The left-hand side of an assignment must be a variable, property or indexer" (870883)
play multiple image targets (video) in same scene - Help!
Player Movement Questions
I'm trying to follow up a tutorial but i can't fix this error error CS1002 "," expected
Need Help With a 2D rotation script
knockback script help
error CS0103: The name 'i' does not exist in the current context
Object reference not set to an instance of an object in my code and I don t know why
FirstPersonMovment coding help
2D Touch Player Movement
how do i fix error CS 1061 and CS 0201
How can I swap any card from above to any card from the bottom?
RigidBody2D wall collision jitter
loss of list elements in scriptable object
Error in the code
Physics and quaternions not playing well together
How to skip a video when you press the E key ?
error Assets\mouselook.cs(21,26): error CS1002: ; expected
'Must declare a body because it is not marked abstract, extern, or partial'
Argument Out Of Range Exception error
Is my code efficient? (682032)
Mouse Look Script not Working
code is right but doesn't work in unity
How can I make my player move when the timeScale is set to 0 or 0.5.
Problem With Code (902288)
Collision issues (OnCollision vs OnTrigger)
Thing being dumb and pretty much saying everything is the problem
Rigid body/Box collider breaking
how to change this Script only move in x position?
Raycast ?
Rendering Spheric Biotope in Level
Any sort of JSON deserializing stops code completely
player !pointing and !rotating at mouse position(2DGame)
canno't play sound through AudioSource
unity 2d image render from script
HELP XROT
Error in Space Shooter Project Script
first person movement
Null Reference Exception again?
[UNITY2D] TileMap.GetTile always returns null
Cannot apply indexing with [] to an expression of type int
How can I make a trigger in 2d
Character double jumps
Can anyone help me with my code?
Animation script help (773291)
local functions on Network Spawned objects runs on both client and server , why ?
Problem using the same script for different objects
CS1002: ; expected
How to URL array to RawImage Array ?????
How to fix error CS1056 & CS 1003 in Unity AR Multiuser Application?
How to sort array by using the value inside the classes?
Issue with the direction of the swipe and the movement of the ball.
Problem with Instantiate GameObject in loop
Cannot implicitly content "bool" to "float"
Changing color lights on a box ...
I keep getting error code CS1001
Destroying all gameobjects while intending to only destroy the one being interacted with
Mobile Detect Device Screen
I need help (925460)
Unity gets stuck when entering Playmode
Planet Orbit Lines Need Help
HELP ME!!! Trying to create a toggle gravity for my platformer game, but movement is reversed.
Cannot modify the return value of 'Transform.position' because it is not a variable
Trail Renderer acts strangely on android devices using front facing camera
Error CS0104
error CS0034: Operator '-' is ambiguous on operands of type 'Vector2' and 'Vector3' please help
Power Up Slider Help!
New to unity, stuck on NullReferenceException
Only assignment, call, increment, decrement, await, and new object expressions can be used as a
Dialogue system IndexOutOfRangeException: Index was outside the bounds of the array.
how to add multiple reward ads in unity ads
CameraRotation
Unity android build error ?
Hi (806493)
i can't fixed the problem pls help me
set emissive material's intensity to flicker along with a flickering light script in c#
Problem with prefabs
Gravity simulation not accurate
Two pivot points for 2D Object
How to add a new row to csv file every second
Slenderman Paper Collection Error
Hotbar button shading flickering
Money save system (783356)
Player don't collect the Cubes
Mathf.Clamp don't work
Script working on object but not on camera
Portals (695139)
(Fixed)so i added a sceneCamera to my project and my code wont recognize it?
Input System (881013)
First time creating but now have a "Fix compiler error" issue
Access/enable/disable bool from another script
Debugging Null
"Please help with the program, I'm just a beginner who doesn't understand anything about programming." (840397)
Coroutine not working every time
Cannot implicitly convert type string to bool. PLEASE HELP!!!
Agent won't turn at goal, just goes to new goal before turning
ridgidbody.addforce occasionally freezes test enemy in place.
addmob test ads not displaying anymore
I can look on the y axis only but not x
Error after Writting the Script for Control Movement!
The Movement is weird.
Generate for all visible taking too much time!
Conditional Operator for an Animator Set Float
player objects disappear when moving forward
how can i do rotation with a joystick
creating an Emission Texture Array
ScreenToWorldPoint with x, y != 0
My Player_Rest animation is Cutting off my Player_Jump animation
I'm having CS 1061 problem here can you help me pls
[SOLVED] C# : Unexpected symbol `{'
Photonnetwork does not contain a definition for 'playerName'
[SOLVED] FPS Crouch and Prone
C# job system
Trying to make a drone in Unity3D but the stabilization is not working right when rotated on Y axis
A bizarre error
Difficulty (Easy Normal Hard) script that increases AI attacks
Player Movement Issue? Sliding when moving right & back.
Can not implement interface member
Help me please (931271)
Error CS1501:No OverLoad for method 'OverlapSphere' takes '1' arguments
error CS1002 in my unity code
WWW ""cannot connect to destination host""
I Need Help With The Game Exporting
jsonUtility.FromJson<>(www.text) return null? my script problem?
Input.GetKeyDown not working at all, even in Update()
The character only picks up one item
Unity Android Plugin isn't work
Weird jumping movement
Attempting to code a simple healthpack powerup
help needed! Cinemachine and .UI no more working
End scene
Script for a ball
Saving/Loading not keeping persistance upon load
Assets\Scripts\KarakterControl.cs(8,28): error CS1003: Syntax error, ',' expected
WebGL huge performance lost when deffault 3d object added (Only on Safari)
Warp Script help
Is this the right way to do this?
Pause Script until Animation is finished. (708376)
unity 2d get data from api in input field
"Unexpected symbol '+=' expecting ',', ';' or '=' Unexpected symbol '||'" (682548)
Animation plays faster when there is lower FPS
Help Implementing a CheckMouse()
GroundCheck Help (900454)
how to fix NullReferenceException: Object reference not set to an instance of an object error
Strange Behavior of Mathf.Abs().
Need Help on this
"Type or namespace definition, or end-of-file expected" (855924)
Unity Error CS1001 and CS1022
Really struggling on this, need help finding nearest target
Trying to get this tab group script to work.
Sound won't play upon collision?
How can i right spawn my player and camera on host mirror, Dont work [Command]?
Unity update (940745)
Numerous errors? I followed a tutorial but it seems to not work for me
Unity 2D Collision wont get detected
how to create a duplicate player character that is an enemy?
3D Graph making
plz help me I cant figure out what I'm doing wrong. It's says Assets\Scripts\Store.cs(21,25): error
Unity Firebase example error: Cannot implicitly convert type `string' to `UnityEngine.Object'
hello gyus. i have problem whit New Photon2
Error 1002 even though i have semicolons
Need some help with a health script.
My player controller is not working correctly
Error Code: Assets\Code\PlayerLocomotion.cs(46,35): error CS1002: ; expected
Failed to convert parameters
Muzzle Flash is not working Plz help
Assets\Scripts\Player.cs(16,43): error CS1002: ; expected
NullReferenceException:Object reference not set to an instance of an object BoxScript.OnPointerClick
How do i fix can't add script behaviour AssemblyInfo. The script needs to derive rom MonoBehaviour?
What would happen (in practical terms) when a GameObject with a Rigidbody is moved using Update?
2d script error
Need help with getting code to work
Having trouble with else if statement inside OnTriggerStay2D
Scrolling code, extra feature...
Custom inspector edit list
Error 0103 in my code (help for fix)
not working why im new please help heres my code
What's wrong with this Pogo stick script?
CS1061 Please help my animation wants to work
Giving a variable a new value under an if statement
Doubts the function of moving character
Scriptable Object not save to exit the engine
Integer subtraction error
Forced Shallow Copy of List Values
Taking key with button
How To Make it Shoot In Right Direction?
Strange Trigger events
NullReferenceException: Object reference not set to an instance of an object, please help!!!
got this error Assets/PlayerMovementScript.cs(19,56): error CS106 while making a player movement
i am Beginner and i Need help with Jumping Animation please
All my models are glitching
Save/Load terrain alphamap issue
Please help (901784)
Need Help with Fixing Errors
Object NOT following camera properly
How do I fix this Null reference exemption error and how can I prevent from getting them?
error CS1514: { expected
How to get multiple GetKeyDown commands to trigger an event, regardless of order struck.
Reloading (803886)
Error (909765)
hey i need a code for 2 characters in 1 game to change after entering the portal in 2 d
Hi! I have a little problem with ''food spawner" for snake.
I'm having a problem movment controls 2d character Void Start ( ) { and Update Namespace Error
instantiating units on a grid question
Trying to call function in a other script
How do I stop the player from scoring after its death?
Selecting Tiles on HexGrid to form "Shapes"
Hello! I scripting in C# my game on Unity and i have an error. (823494)
i got this error assets\scripts\GenerateChunks.cs(66,2) ; expected here's my code
I have two erros but I dont know where Thanks for helping
OnStateEnter and OnStateUpdate NullReferenceException
should I use greater than and less than signs in Unity?
Please Help If You Can
CS1002 CS1513 CS1525
How Do I Make An AmmoPick Up Whats Wrong With This
cant find the problem
TextMeshPro won't connect to my C# script element for a text display output
My player moves back after i stop any input
Help pls (923523)
void start() wont work
UI "Image" turns into "Script"
Help with Random (851309)
Character collecting item issue
yield return web.SendWebRequest() crashes on Samsung Galaxy Tab A7 Lite
Why is my script full of errors
Why is this script not working (909300)
Assets\Scripts\PlayerController.cs(34,57): error CS1003: Syntax error, ',' expected
How to use "is not null" in unity?
The wandering script that i use make objects invincible...
"[solved] Create a texture with a .png at runtime, how to make it transparent ?" (687813)
Cannot understand why my for loop is not returning a value.
Objects' movements aren't synchronized perfectly
Where I did wrong with the stencil?
Problem with Unity Survival Game Step 7
I have some code that isn't working
Array index is out of range (691017)
Help converting this ini to a string.
My Character and Enemy use the same script, but i can`t kill them but they can kill me weird
Trail Renderer not Working (839347)
error CS1729: 'lootAngle' does not contain a constructor that takes 0 arguments
Stopping Teleport Back
Activate/ deactivate UI with the same key, after a few sec
Buttons aren't working
CustomPropertDrawer noob : simple togle to show different fields
No Monobehaviour or name doesn't match the file name
Assigning object references across several scenes with DontDestroyOnLoad
Double jump with pointer down
[Solved]Delegate function lost parameter value on ios + assetbundles
cant access scripts :(
I need help with the UI and score board scripts for my 2d game using unity 2021.3.33f1
Errors when compiling the project
I have a problem that it name is cs0246
RTS basic selection issues
Avoid "new" Monobehavior with constructor of List<class>
test if there is no key down
Setting Event Trigger in Code not working.
Instantiateing Objects After Certain Amount Of Time
I keep getting the same thing
Drawing a Hexagon with meshes
custom class not working
so i am getting this error and i cant figure out whats the problem (20,21): error CS1002: ; expected
character slides over the floor
why?? what happen??
how to activate dialogs with a button, through states
What memory management is required for ScriptableObject?
''bool does not contain a definition for visible''
Is it possible to grab image height/width info from a byte array or texture2D somehow?
2D rock climbing
My attack scripts don't affect the enemy. can some one help?
My jumping only works sometimes
Jumping,having problem with capsule collider
I HAVE AN ISSUE WITH SMALL AND RENDERING
When i restart the score does not restart
Issue with mouse position
Instantiating a non-GameObject?
Why the program always say option is 0?
Why is JumpHeight of 7f not enough to lift Player off ground?
Help im new to this
the Rigidbody isn't working on my code, it is not getting selected
object flying...?
3D platformer mobile game
Health Help
How can I make a wait function here?
Is this code proper for switching from one scene to the next
Trying to build a walking, rotating cube, but it just slides
Hi! I have a little problem with ''food spawner" for snake.
Timing while a variable is true
Respawn Code Help!
Flying Space Character can't see colliders
Drag and Drop not working at all - 2D Game
set a 60s delay for my car (game object) when arrive to a special point (an intersection)
.SetActive(false); not working on Clone. (c#)
How Can I fix this?
why is vector2.up not working?
Hopping enemy issues
any fixes? (found a fix)
2d grid movement: clicking anywhere inside a cell and moving the character that point
null reference expection
Object reference not set to an instance of an object (821501)
Trying to write a method to return angle between 2 waypoints in 3D space
Unity 2d error cs0246
Player keeps moving, even after key is released. please help.
Camera.main.ScreenPointToRay(aim); does not work when camera changes state / position.
Please tell me what is going wrong
Where is the error
Strange error (889635)
Object reference not set to an instance of an Object/ Object Pooling
Two lines of code work. Want to understand the difference.
My public class is invalid for this item suddenly
I don't know what the problam with my code
Enemy characters not shooting straight at player
TileMap.SetTile doesn't work
Null Reference Exception (845477)
physicsSim.Simulate broken
Help me with this code
Trouble with the air attack in a beat em up 2D game
Code dose not work
Need help with health bar (931002)
I need a jump script (690898)
How to make player lose health when touch an enemy?
I am closing the thread
Enemy Health doesn't update in build
camera freakout
Cannot implicitly convert type 'void' to 'bool
Could not get text from unity in csharp
trying to compare 2 material colors
Randomize my Road
"Restarting 2D Rouge Like Game Tutorial with ""R"" keyboard press" (691949)
playprefs with double Values
How to make gameObjects move towards a random object in the scene?
Best overloaded match for Stats.addstats(int) has some invalid arguments.
Java script into c#? please help me im stuck.... (solved)
Help (703459)
ArgumentOutOfRangeException (810960)
How can Player get back to the coordinates of C scene?
Trouble Coding Collision for Enemy
[SOLVED] Why balls lose speed after bouncing (especially when they bounce off each other) ???
How can i right spawn my player and camera on host mirror, Dont work [Command]?
When i press play i get a blank blue screen...
AddForce to object (895913)
NullReferenceException error (745900)
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DroneMo
Mouse follower resolution problems
Time script problem.
Problem : ArgumentExeption: The Object that you want to instantiate is null.
Help (747943)
Something is really wrong with my physics(or code)
help, i have unity other.gameObject.tag, im a beginner :D
Changing array variable declarations for scriptable object and impact on editor
UnityException: Transform child out of bounds PlayerScript.CreateAtStart (Int32 amount) (at Assets/W
Error CS0149: Method name expected (help) (813791)
Is there another way to have an Enemy GameObject chase the Player?
how to put a text above a game object?
I just override my attack method but, I stuck in null ref. Please take a look!!
Simple controller code for moving around
Hey I'm new to Unity and could use some help
eal newb ie - cannot call a functio
Help (892573)
Error cs103
cs0120 error please help.URGENT
My scripts works sometimes and sometimes doesn't works
A* Pathfinding issue(Can't access maxSpeed)
Cant put script into a variable
Jump to start of IF-Statement
I'm not sure why the 50 isnt working here
Unable to draw from decklist, it's random. And I need " if I draw a certain card it removes from lis
OnTiggerEnter and OnTriggerEnter2D not working properly...
Error CS1001: Identifier expected (736842)
Verwirrendes Problem
Can someone help me on my simple animation controller?
How to set brand new rotation angle?
Character sinking into ground
I keep getting null, I need help I can get
Item Stacking
error CS1061: 'Rigidbody' does not contain a definition for 'usegravity' and no accessible extension
Question about view area coordinates
Hello, using System.Collections; using System.Collections.Generic They don't work Please help me
Compiling error in New level code
Beginner question, strange error that makes no sense
Character controller input issues
quaternion error!
getComponent dosen't work.
scrip t
How to kill/disable moving enemy that is chasing me with raycasts?
GetInPyramid function feedback
dont know how to fix the problem
I am getting an error, 'Component.collider2D' is obsolete.
How to save a material at run time?
I need help it keeps on saying The name 'i' does not exist in the current context on line 19 21. (835035)
I need an advice.
Problems getting Input.Axis to work(?)
You can only call GUI from inside OnGui
Non-invocable member 'Teleport' cannot be used like a method.
Help Me, MissingReferenceExcepion
The referenced script (Unknown) on this behaviour is missing! - how to fix?
Super Beginner Error Question - Identifier Expected
error CS1525: Unexpected symbol
Character not moving (909815)
2D melee combat enemy problem
Help Wanted Rewarded Ads scripting
Movement help (915492)
It is not allowing me to make a public void. Error: CS0106
Error CS0102 & CS0111
problem with raycasting
unity error cs1002 ; expected
Scale an object as it’s child moves along z axis
Please help me when answers not working (681753)
How to combine meshes with different materials?
Unity Unexpected symbol problem
List of object cleared when scene reloads even after applying singleton.
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DroneMo
Restricting force to downward component?
I got a problem with scripting
Creating Animator Controller Asset in Code
Slight pause before jump
I need help (818943)
How to use my score
3rd person character rotate to camera and rotate to terrain slope
Help with Jumping & camera script wanted ... :DD
My Ui Button on canvas(Event Trigger) for character movement don't working?
plz help me!!! (2D laser reflection)
Help ! (844974)
Debug Log Error Collision detected
Another pong error...
Shader On Entire Object Instead of Faces
Troubleshooting: Ray Wenderlich's tutorial "blockbuster"
Player falls through a moving platform
help me!!!
AI Code Not Working
Unity error CS0103: The name `InputManager' does not exist in the current context
Updating Child Position when Parent Rotates
Door script not workin
Cleaning Up Code
Can anyone help me with this?
public void PlayGame help me error
transform of a gameobject
An error occurred while creating Slider Health and shield
Particle System looping on Player Death
Only one input after pressing a button possible?
Change Value .
C#1519 Invalid token 'void' in class, struct, or interface member declaration
Editing prefab using an editor
Unity Editor don't like classes names <Something>Source
Trying to switch between scenes after my player character enters a collider and presses a key
How to add recoil to 2d shot
Basic player movement
Object closest to the finish line
Player not jumping on 2d tile map
Can some one help me pls? Argument 1: cannot convert from 'int' to 'UnityEngine.Vector3'
how to fix a mistake
Im stupid and need help
How do I make my code work?
Sorry for posting this again, but objects aren't destroying.
Cannot set new transform.rotation value.
Script bug in tutorial
I'm really new to unity, what is error CS8803?
Can't move and rotate two bone ik contraint smoothly
error cs1002 expected
How to balance a player moving objects in Unity?
SceneMangement compiling errors
(new dev) 2d rigidbody2d not working with collision [solved]
adding sound
Errors in a correct script
How to use Physics.ComputePenetration to "collide" with multiple objects at the same time? Thanks
can't make enemy attack on a loop
Need help an if statement that involves Collision The If statement below does not play need help
Don't work my boolean
Animation.setbool does not contain this definition
Adding bullet spread to projectile
optimize the code for android
CS1002 (25,31) pls help
Error CS1002 and Error CS1413
if (Input.GetKey(KeyCode)) Bug?
Simplest way to create an OverlapCylinder (flat top/bottom bases) method ?
Its suppost to take input form Keyboard but this script does NOTHING!
I am getting errors on line 62 of my code
AssetBundle not completely cleared in iOS
Moving box help
Generacion procedural
Please help i dont know what i did wrong but my cooldown doesnt work
I can't Find the error Please someone Help
How do I instantiate specific objects from a list?
PROBLEM need Fix!
Created prefab follows player instead of being fixed to the world
The name 'birdIsAlive' does not exist in the current context
how to norlmalize rotation if the plane reach the direction
Can't get Physics.Raycast to work
Unity Physics (816497)
Build Errors (822755)
Null Reference (865041)
Help (827818)
Error: NullReferenceException (702323)

I think maybe a bbcode button for the code tags should be added to the quick reply it would make things alot easier… but also the code tags can be written in all lower case such as this(Of course without the quotes)
“[“code][/code”]”
so people could also hand write them…

//code tags used with all lowercase letters
5 Likes

Having code tags in the quick reply is on my features request list. I hope the webdev team will have time when Unity Developer Network settles in…

/me wonders if it is worth a point on feedback…

2 Likes

FINALLY!!! people lately have been spammed code blocks all over the threads… good post ^^

Excellent post!

Yeah!!! We need it. i don’t want to switch to Advance to just to add CODE…

You can just type the code tags yourself; you don’t need to switch to anything.

–Eric

2 Likes

hmmm… Thanks for Trick… Eric. I’ll do.

//  OMG

for(i=0;i<age;i++){
     Body.head.speak("Thanks alot");
}

//Thank you :)
5 Likes

I echo that… Code tag shortcut on quick reply please! I don’t want to type bb tags any longer, that’s sooo 2000’s :).

Fixed that for you

//  OMG

for(i=0;i<Mathf.Infinity;i++){
     Body.head.speak("Thanks alot");
}

//Thank you :)

Infinite thanks that is.

OFF:
Also, the “+ Reply to Thread” button should be gone when you click it… I’ve clicked that many times thinking it was the “Post Reply” button and BAM! reply is gone! BAM, BAM, BOO!!

1 Like

It would be really nice if the line-spacing issue was fixed when copying and pasting source code from code boxes (copied from above):

//  OMG

 

for(i=0;i<Mathf.Infinity;i++){

     Body.head.speak("Thanks alot");

}

 

//Thank you :)

It inserts extra new lines.

These extra new lines do not occur when copying and pasting code from the printable version of threads:
http://forum.unity3d.com/printthread.php?t=143875&pp=20&page=1

Also, I think you guys should replace the default logo in the printable version with the Unity logo :wink:

The new forum theme is really nice but where did the CODE tag button go ? It’s most of the time already hard enough to read people’s code here but without it easily accessible it’s a pain in you know where.

Would be nice if everyone could have the ability to edit a post but only to add CODE tags when missing :smile:

This is a question I was just asking myself today.

They can be manually added, at this point, but I’ll try to find new info and post it here.

_met44:

(afaict) There is no overt “Code” tag button, which automatically tags a selection as code.

We can still manually insert out code tags:

BUT!

That being said, we can Insert code directly into the post using “Insert/Code”:

This will bring up an “Insert” window were we can paste our code and choose our language:
984347--103141--Screenshot 2014-06-04 12.39.53.png

This will insert this code with Forum Markup that looks like this:
984347--103142--Screenshot 2014-06-04 12.43.25.png
Note: that when manually inserting code, we can choose the language by using “=CSharp”

This is the final code in the post:

using UnityEngine;
using System.Collections;

public class Explode : MonoBehaviour {

    public GameObject explosion;
    public ParticleSystem[] effects;

    void OnCollisionEnter2D (Collision2D collision) {
        if (collision.gameObject.tag == "Hat") {
            Instantiate (explosion, transform.position, transform.rotation);
            foreach (var effect in effects) {
                effect.transform.parent = null;
                effect.Stop ();
                Destroy (effect.gameObject, 1.0f);
            }
            Destroy (gameObject);
        }
    }
}

Hope this helps!

1 Like

On a side note, if you copy the code and paste it:

It pastes into Monodevelop without line numbers or added spaces between lines.
It pastes into TextEdit on the Mac with line numbers and coloured text with the hyperlinks to the docs intact!
It pastes into Mac Mail.app with line numbers and coloured text with non-functional hyperlinks…

1 Like

Thank you very much Adam, you must be busy and still took the time to check it, it’s very nice.

I would never have found it… However, I didn’t stop using the tag myself because of the hiden button, I simply wrote it manually. I was more worried junior users of the forum would never find it… (would be best as a red blinking CODE button actually ^^')

I do see your point _met44! I gather Aurore did try hard to get an easy “code tag” feature, but this new software package wasn’t that forgiving. At least we do have “Insert Code”!

1 Like

Only if you use rich text; if you use plain text, then it gets pasted as normal without line numbers. It would be nice if there was a “select all code” button though.

–Eric

Thanks…

Anyway, I’ll just use the insert method.

Testing:

var poopiness = 0;
var desiredPoopiness = 3;

if(poopiness > desiredPoopiness){goLoco();}

Grab By | Simple. Screenshot. Sharing Software Blog Broken Image Link?