- Home /
Question by
aangeles2807 · Apr 28, 2017 at 05:51 AM ·
renderersharedmaterialmaintexture
Why hitRender.sharedMaterial.mainTexture is Null?
Hi,
I found this code that is shared in the community:
http://answers.unity3d.com/questions/189998/2d-collisions-on-a-texture2d-with-transparent-area.html
I'm trying to verify if the pixel is transparent but the hitRender.sharedMaterial.mainTexture always is null.
The next image show the configuration object:
Note: the Ray Casting script contain your code.
Im new, using Unity and i need to know why is null. Is something is missing?
Please Help Me!
capture.png
(175.8 kB)
Comment
Your answer
Follow this Question
Related Questions
Multiple sharedMaterial(s) 0 Answers
Video texture problem? 2 Answers
Answer about mainTexture 1 Answer
renderer.material.mainTexture not changing texture... 1 Answer
Material Versus Shared Material 2 Answers