Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: adamcrockett on July 04, 2016, 03:29:49 PM
-
I'm having trouble getting any variables to change via "get pixel color" . What am I doing wrong? Here's a youtube screencast explaining the problem.
-
Hi,
get Pixel color works with x and y being local coordinate of your texture, it has nothing to do with where it is on screen basically, I think this is where you are getting confused.
So do a raycast from your mouse position, and then use another custom action ( on the Ecosystem, called GetRaycastHitInfoExtras (https://github.com/jeanfabre/PlayMakerCustomActions_U3/blob/master/Assets/PlayMaker%20Custom%20Actions/Physics/GetRaycastHitInfoExtras.cs)
Have a go, and let me know if you still struggle with it, I'll do a working sample.
Bye,
Jean