Hi i have a coding problem where it says that parameter open does not exist does anyone know how to fix that? : r/Unity3D Skip to main content

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores
r/Unity3D icon
r/Unity3D icon
Go to Unity3D
r/Unity3D

A subreddit for News, Help, Resources, and Conversation regarding Unity, The Game Engine.


Members Online

Hi i have a coding problem where it says that parameter open does not exist does anyone know how to fix that?

Solved
  • r/Unity3D - Hi i have a coding problem where it says that parameter open does not exist does anyone know how to fix that?
  • r/Unity3D - Hi i have a coding problem where it says that parameter open does not exist does anyone know how to fix that?
Share
Sort by:
Best
Open comment sort options
u/BulmasBF avatar

The bool in your animator is called "Open" not "open", it's case sensitive

Also, don't use other.tag == "Player". Use other.CompareTag("Player") instead.

u/anywhereiroa avatar

Also also, you can get rid of the // Use this for initialization and // Update is called once per frame lines by editing the template script. You can also add stuff like your company name etc. on top!

The file path is %EDITOR_PATH%\Data\Resources\ScriptTemplates

u/chenlao avatar

May I know the reason?

More replies
u/AutoModerator avatar

This appears to be a question submitted to r/Unity3D.

If you are the OP:

  • Please remember to change this thread's flair to 'Solved' if your question is answered.

  • And please consider referring to Unity's official tutorials, user manual, and scripting API for further information.

Otherwise:

  • Please remember to follow our rules and guidelines.

  • Please upvote threads when providing answers or useful information.

  • And please do NOT downvote or belittle users seeking help. (You are not making this subreddit any better by doing so. You are only making it worse.)

Thank you, human.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

u/chenlao avatar
Comment Image

this is the animator btw

u/Demi180 avatar

There’s your answer then. It’s not “open”.

u/Sponglebobbel avatar

The parameter is called "Open", but in the code you have written "open".

More replies

A bit unrelated but try Rider (has a free trial) see how you like it. It catches stuff like that.

u/chenlao avatar

Hmm will try that

More replies
u/shnyaps avatar

Is it Mystique 2 game?

u/chenlao avatar

Sorry but I don't know what you're talking about

u/shnyaps avatar

I saw similar game on Android/iOS 15 years ago. It called The Mystique 2

u/chenlao avatar

Oh lmao I checked it and it's very hard to find but how do you even remember a game thats so old haha

More replies
More replies
More replies
u/chenlao avatar

Oh damn, I'm stupid hahaha thank you for noticing it for me not quite familiar with coding yet🥲