Skip to main content
gamedev.net
🔒 Locked

Problems on using Function 'Material::CreateDynamicMaterialInstance()'

Started by Ruuku May 13, 2025 at 7:35 AM 1 replies 1.1k views
Original Post
Ruuku
Ruuku

"I'm attempting to dynamically create a material instance during an AnimNotify. My current approach involves a component attached to the pawn, where the notify triggers a function within this component to create the instance. However, I'm encountering an error stating the component ‘is not in the world.’

After reviewing the Split Fiction project's animation system code, I noticed they use a method that explicitly passes a world context to the function. Is there any possible way to get that function or is there another way to solve the problem?

WitchLord
WitchLord

Hi @ruuku

I'm not sure what you are talking about. You may not be posting in the right forum space.

Regards,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.