Similar Posts

Subscribe
Notify of
4 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
DJFlashD
1 month ago

I’ve never done anything with unity, but I’m trying to help:

So “door” is not a class name, and for GetComponent a parameter is definitely missing which comes into the round indicating what this is for ne component you want to get

Can it be that the “door” has to clip into the laps, and you have to make the class name (type) of your door into the square clips?

Destranix
1 month ago

You’re asking a value of type “door”. However, such a type of “door” is not known.

Perhaps the value you want has another type or you need to put the type “door” in the context.

Destranix
1 month ago
Reply to  Fragenfinley

I guess it’s the first problem. You use it like a bool, so probably there should be “bool” and not “door”.

In the context, you could do this, for example, by completely writing out the type with the appropriate namespaces at the front. Otherwise by including it.