Not a bug

Error message, NullReferenceException: Object reference not set to an instance of an object

Charles Geringer 9 years ago updated by rahul kumar 8 years ago 5
tried skele in a new project and got the message:" NullReferenceException: Object reference not set to an instance of an object"

Video of the bug happening:https://www.dropbox.com/s/0t2462ngmphnpgs/scrennRec1.flv?dl=0

Kyle model straight from the asset store, no other plugins installed

Using windows 8.1 and unity 5.1.3f1
Under review
Hi, Charles Geringer,

Thanks for your feedback, it's very helpful to have a video for locating reason for the issue.

In this case, the correct method to get to the SkinnedMeshRenderer(SMR) component is to navigate to the one automatically created by Unity (double-click the model will do).

Indeed, it's possible to manually add a SMR component and make it properly work, but it requires kinda complex setup.
So I would still suggest you take the above method (double-click the model to get to the pre-built SMR)

Tell me if things still not work out,

Best regards, Be creative,

Your solution worked, Thank you very much for the quick reply.
You're welcome, tell me if you have any other question =

NullReferenceException indicates that you are trying to access member fields, or function types, on an object reference that points to null. That means the reference to an Object which is not initialized.

It's usually better to avoid a NullReferenceException than to handle it after it occurs. Handling an exception can make your code harder to maintain and understand, and can sometimes introduce other bugs. A NullReferenceException is often a non-recoverable error. In these cases, letting the exception stop the app might be the best alternative. More about.....NullReferenceException