playMaker

Author Topic: Trouble getting component  (Read 1206 times)

RobotGoggles

  • Playmaker Newbie
  • *
  • Posts: 36
Trouble getting component
« on: November 08, 2021, 12:06:47 AM »
This may be a peculiarity of the script I'm trying to access, but I'm having trouble using Get Component to get a script that's attached to an object.

I'm using Easy Performant Outline ( https://assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/easy-performant-outline-2d-3d-urp-hdrp-and-built-in-renderer-157187 ) to highlight certain objects, so I need to be able to access the script to change a color value, or at the very least turn the script on and off. I'm able to find the script and set it as the value of an object variable, but when I try to use Get Component using this variable, Playmaker doesn't find anything.

Attached are images of the script component in question (which is definitely there) and the Get Component action (which can't find it)

I've used this in a similar way with other scripts with mixed results, but I've never not been able to find the script at all. Any ideas?
When life hands you insomnia, make video games.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4174
  • Official Playmaker Support
    • LinkedIn
Re: Trouble getting component
« Reply #1 on: November 09, 2021, 09:09:12 AM »
Hmmm, the setup looks correct. Is the action definitely running? (e.g. could the IntCompare exit the state first). Try it by itself on a simpler state to double check.

RobotGoggles

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Trouble getting component
« Reply #2 on: November 10, 2021, 03:16:54 AM »
I've clearly been staring at this too long. That should have been a lot more obvious  ;D

Thanks a bunch
When life hands you insomnia, make video games.