Accessed none trying to read property

So I’m on my 8th and final course for Coursera, and as I’m working around in the second module, I came across this error involving my stealth mechanic.

It tells me that I should set a scalar parameter but they’re already set, at least, I think they’re already set.

I don’t see the error here? The error points to the f Stealth Off function as seen below. I wish the course covered this error already.

I’m already in the process of area of effect based attacks and this just came out. I’m not going to bother asking their AI for help, so I’m wondering if anyone here can help me out.

Thanks.

Just to add to this, the error is blueprint runtime error: accessed none trying to read property mesh_material_0 . node: set scalar parameter value graph: fstealth_off function: f stealth off blueprint: bp_character_coursera_player

Huh, nobody.

If the character mesh has a materials, you need to select mesh component and throw it in the blueprint - then search from that mesh component - “get material”(whatever index) and from that set scalar parameter value.

I mean it would’ve been nice if the course did cover the issue. Seems to be caused whenever I use a sphere trace. Beyond that, everything is working as intended.

Looking at this, the parameters are all set up, but the mesh material values are empty and I cannot set them, not even through the details panel. I tried and it just flat out refused to let me set them, wtf?

to me seems like that param name doesnt exist on that material, not sure if this helps

https://stackoverflow.com/questions/65183395/how-to-access-a-material-instance-variable-from-a-blueprint-object-in-unreal-eng

unless i completely missed your question in that case i apologize for wasted time :smiley:

The parameter does exist, as per the final course’s second module, the stealth system requires a scalar parameter set up in the character’s materials.

Oh well, I’ll probably let them figure it out since they made the course.

If you are following a course and are unable to do some basic troubleshooting, what is the point? What are you learning?

Aside from that, it’s obviously a bad course if it doesn’t teach you the basics of error handling.
Accessed none trying to read property mesh_material_0

You don’t have ANY validation at all into the variables, which is likely why you get the error. But I’d wager your variable itself just isn’t set.

Well excuse me, it’s not my fault they fast-forward with each video in the course. Granted, it takes time for my brain to process things.

For the second time, I tried to set the variables and it just won’t let me. If someone’s going to give me another half-■■■■■ response, I’m deleting this discussion.

If you need further proof, then here, look for yourself if you’re so sure about everything.

You ask half ■■■■■ questions and pretend a response. That’s the second thing that means you are not cut out for this type of work in this thread alone.

I’m not saying give up, I’m saying get to actually learning. No one is going to help you with that attitude.

is Beta_HighLimbs material instance or material?. which exact course you are doing?

It’s a material, and the course is the 8th one, game development and prototyping. The stealth thing came in the second module…which has 108 or so videos.

Again, I’m learning through Coursera. For the record, Coursera is partnered with various universities and colleges, and this Unreal Engine subject they have is established by Epic Games themselves.

if is normal material and not material instance thats where your issue is, that field only accepts material instance, right click on that material and create instance from it and then paste it into your MeshMaterial 0 slot

Tried using the material instances and looks like that didn’t work. Thanks for the help though.

Seriously? In 108 videos the courses didn’t teach you proper error handling and basic bug resolution?

I find that VERY hard to believe.
However, if these courses are designed by epic employees it’s Totally possible.

First of all, get your money back:
You are obviously learning nothing; worse than that - which would be a you problem btw - there is obviously nothing worth learning being thought here.

Second - Learn some basics.
Google “UE4 Is Valid?”
Add that in there. Print yourself a debug message - google “UE4 Print String”.

And learn how to use blueprint Break Points to analyze your code - same as you would written code.

Seriously, I can’t believe I have to type this s*it in response to a topic where the course in question is “Paid” and “Epic Sponsored” and the user is some 108 videos in. In 2026.
But again, it may not actually be you if Epic is involved.

I recommend you look into Coursera and see the Unreal Engine course for yourself. Pretty much everything there is almost no different from the courses on this forum. Like I said before, it has 8 courses. You work through the videos as you go with questions asked in most videos which you can answer.

That aside, you actually work with your coaches to what will basically be part of a graded assignment to the next course.

Much better to see for yourself before yelling at people because what they’re doing is so different from these forums.

Hard pass.
There’s definitely no need for me to see how retarded the basics course that can’t teach you the basics is.
I and anyone can take it at face value from your posts… and never hire anyone that even mentions learning on “coursera”…

Hard to say, since I haven’t seen anyone agree with you.