Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

i am modifying the inventory system made by brackeys. https://www.assetstore.unity3d.com/en/#!/content/10384

Now i want to define a c# script into a variable inside the character.js file. It looks like this:

var keyScript = Clone.GetComponent.<Key>();

It gives me an error, i really don't have a idea what it means. Quack?

Assets/Inventory/Scripts/Character.js(180,52): BCE0138: 'quack' is not a generic definition.

My key script is in the standard assets folder. This prevented some errors

share|improve this question

put on hold as off-topic by Byte56 2 days ago

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about debugging a problem in your project must present a concise selection of code and context so as to allow a reader to diagnose the issue without needing to read all of your code or to engage in extensive back-and-forth dialog. For more information, see this meta thread." – Byte56
If this question can be reworded to fit the rules in the help center, please edit the question.

    
This sounds more like a general programming issue than a game development specific question. It would be a better fit for stackoverflow most likely. Further, I suggest you actually include the line that your error message is complaining about. –  Byte56 2 days ago
    
Are you sure what you posted is line 180? Because the error message specifies a problem on line 180, and that looks like you accidentally wrote "quack" somewhere in your code. –  jhocking 2 days ago
    
Yes, i'm sure that that piece of code is on line 180. When i comment it out my error message disappears. I've used CTRL + F to searcf for quack but no results. Byte56 the line i included is the actual line that gives the error. Should i include more code? –  joel 2 days ago