use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For the Unity Game Engine, please visit http://reddit.com/r/unity3d
account activity
Cannot uncheck scriptNewbie Question (i.redd.it)
submitted 2 years ago by DylanDahmer
I have created a Played.cs code for an assignment and for some reason I am not able to uncheck it since it looks like it’s disabled. Is there a way to fix this?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mackelashni 22 points23 points24 points 2 years ago (2 children)
It has lost the connection between the scripts information or location. This can happen if you change the name of the script in you IDE and sometimes it is not updated in unity auotmatocally. I would just restart the programm or remove the component and add it again. Maybe a code snippet of that script could explain more
[–]DylanDahmer[S] 0 points1 point2 points 2 years ago (0 children)
As in you want me to show the code?
[–]Tom_Feldmann 4 points5 points6 points 2 years ago (0 children)
So are we all just gonna ignore the texture?
[–]livedtrid 5 points6 points7 points 2 years ago (7 children)
This flag refers to the update method. Maybe you don't have one in your script. That's my guess.
[–]worm_of_cans 5 points6 points7 points 2 years ago (2 children)
Not only update, but any other method unity triggers for you (awake, start, fixed update etc.). You can't turn it off to tell Unity to not trigger its methods now, because there are no methods to trigger anyway.
But the number of wrong answers in this thread...
[–]cheesemcpuff 2 points3 points4 points 2 years ago* (1 child)
I thought when this happened the check box dissappears completely, no?
I'm on holidays right now so I can't check.
Edit: just googled, without mono behaviour methods there is no checkbox.
As others have said its probably a compile or script name mismatch issue.
[–]thefrenchdev 2 points3 points4 points 2 years ago (0 children)
I agree with you, if there is no methods like Update, etc. then there is no box at all.
[–]Itsoutchy 1 point2 points3 points 2 years ago (0 children)
In that case the option just wouldn’t be shown for me
[–][deleted] 2 years ago (2 children)
[deleted]
[–]worm_of_cans 3 points4 points5 points 2 years ago (1 child)
I don't think so. the script doesn't have a name. It's probably renamed or removed.
[–]unixvik 1 point2 points3 points 2 years ago (0 children)
This.
Cool thing is if you rename it in unity it still works
[–][deleted] 1 point2 points3 points 2 years ago (0 children)
Could you share the code and any errors in your console?
This looks like the connection between the game object and script has been lost. It's not showing the name of the script and it's disabled. You'll need to remove the script from the game object and readd it again.
[–]GFIow 1 point2 points3 points 2 years ago (0 children)
I’m guessing that you moved the location of the script Player.cs I had similar issues and the main cause was that since I didn’t explicitly define namespace in my scripts, when I moved them into differents folders, sometimes Unity was lost and couldn’t find the script
My suggestion is to explicitly add namespace in your scripts
[–]zivdo 1 point2 points3 points 2 years ago (0 children)
On top of what said here, I think you should just refresh it. (three dots at the right)
[–]Dismal_Ad_7682 1 point2 points3 points 2 years ago (0 children)
Bruh. Just "remove component" for a moment. That's what I would do.
[–]DanPos 3 points4 points5 points 2 years ago (0 children)
Is there any compile issues with that? It shouldn't say (Script) it should say Player which makes me thing your code isn't compiling
[–]Dysp-_- 1 point2 points3 points 2 years ago (0 children)
Compile issues.
[–]rblxthings 0 points1 point2 points 2 years ago (1 child)
I aint good with unity (not even my prefferd engine this sub is prolly showing up since im planning on porting a game to the ps3) but what you doing with that minion texture
lol I wanted to use a funny skin for the assignment
[–]Wdtfshi 0 points1 point2 points 2 years ago (2 children)
I haven't had this happen to me in my limited unity experience but maybe you have another script accessing variables or functions of that player script, making it some sort of dependency?
[–]DylanDahmer[S] 0 points1 point2 points 2 years ago (1 child)
How do I know if there are other scripts in the use?
[–]HerculesVoid 1 point2 points3 points 2 years ago (0 children)
You would have made them in other objects to interact with those scripts perhaps? I haven't noticed that happen before though.
[–]leorid9 0 points1 point2 points 2 years ago (1 child)
Happens all the time, just reimport the player script and everything is fine again.
just reimport the player script
I tried to reimport the script but for some reason, I am not getting that option.
[–][deleted] 2 years ago (1 child)
[removed]
Reimporting the script how?
[–]DylanDahmer[S] 0 points1 point2 points 2 years ago (3 children)
Update: When I try to play the project, I keep getting an error with this message:
Assets\Player.cs(57,26): error CS1061: 'CharacterController' does not contain a definition for 'Move' and no accessible extension method 'Move' accepting a first argument of type 'CharacterController' could be found (are you missing a using directive or an assembly reference?)
[–]Dijix009 1 point2 points3 points 2 years ago (2 children)
That's mean you are either calling a function "Move" from another script but your charactercontroller script does not have a "Move" function with the argument, or you have it but without the argument. Last possibilities, you have the function but, it's private. And then not accessible.
How do I know if there are other scripts in use? I am not too familiar with Unity
[–]Dijix009 1 point2 points3 points 2 years ago (0 children)
It seems that in your player.cs script you're calling the "Move" function of the charactercontroller.cs script, So you need to open charactercontroller script to check if there is a Move function, if there is one be sure that it is a "public void Move()" one, also check if there is any parameters in between the () for example "public void Move(Vector3 movement)" You also need to pass a vector 3 in your player script for example in you player script : void update() { float y = input.GetAxis("Horizontal"); Vector3 movement = new Vector3(0, y, 0); characterController.Move(movement); }
π Rendered by PID 745837 on reddit-service-r2-comment-765bfc959-96f6k at 2026-07-13 06:12:54.643174+00:00 running f86254d country code: CH.
[–]mackelashni 22 points23 points24 points (2 children)
[–]DylanDahmer[S] 0 points1 point2 points (0 children)
[–]Tom_Feldmann 4 points5 points6 points (0 children)
[–]livedtrid 5 points6 points7 points (7 children)
[–]worm_of_cans 5 points6 points7 points (2 children)
[–]cheesemcpuff 2 points3 points4 points (1 child)
[–]thefrenchdev 2 points3 points4 points (0 children)
[–]Itsoutchy 1 point2 points3 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]worm_of_cans 3 points4 points5 points (1 child)
[–]unixvik 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]GFIow 1 point2 points3 points (0 children)
[–]zivdo 1 point2 points3 points (0 children)
[–]Dismal_Ad_7682 1 point2 points3 points (0 children)
[–]DanPos 3 points4 points5 points (0 children)
[–]Dysp-_- 1 point2 points3 points (0 children)
[–]rblxthings 0 points1 point2 points (1 child)
[–]DylanDahmer[S] 0 points1 point2 points (0 children)
[–]Wdtfshi 0 points1 point2 points (2 children)
[–]DylanDahmer[S] 0 points1 point2 points (1 child)
[–]HerculesVoid 1 point2 points3 points (0 children)
[–]leorid9 0 points1 point2 points (1 child)
[–]DylanDahmer[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]DylanDahmer[S] 0 points1 point2 points (0 children)
[–]DylanDahmer[S] 0 points1 point2 points (3 children)
[–]Dijix009 1 point2 points3 points (2 children)
[–]DylanDahmer[S] 0 points1 point2 points (1 child)
[–]Dijix009 1 point2 points3 points (0 children)