ErhanK Posted May 4, 2019 Share Posted May 4, 2019 Hello there. I'm trying to get the texture path on pickinfo's surface. If I can get the path name, I'll specify the bullet impact effect from the postfix I added to the texture name (eg myTexture_wood or myTexture2_metal). But the nullptr value is returned. Here is my debug window. can anybody help? Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted May 4, 2019 Share Posted May 4, 2019 GetMaterial() might be returning null. Quote Link to comment Share on other sites More sharing options...
ErhanK Posted May 4, 2019 Author Share Posted May 4, 2019 Yes.it's returning null but how can i achive this? Can we get this information from the surface of pickinfo? Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted May 4, 2019 Share Posted May 4, 2019 If you call GetSurface(0)->GetMaterial() it should work. 1 1 Quote Link to comment Share on other sites More sharing options...
ErhanK Posted May 4, 2019 Author Share Posted May 4, 2019 Yes "pickInfo.GetSurface()->GetMaterial()->GetTexture(0)->GetPath()" this is worked. thank yo but its causing some problems. i'll think another way 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.