Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Raptor5399 on July 28, 2013, 06:35:17 PM

Title: Graph view Links not visible
Post by: Raptor5399 on July 28, 2013, 06:35:17 PM
Hi, I am having a lot of difficulty trying to work in PM because I can't see what is linked to what.  The links are actually drawn, they are just so faint they do not show up on my monitors.  I have already tried restoring default settings.  I am using most recent Unity and PM versions.

The only time the links show up clearly is when Unity is in Play mode, if I pause it or stop it, the links are gone again...

Attached is an example using the light BG. Dark BG is also broken though.

Title: Re: Graph view Links not visible
Post by: Alex Chouls on July 28, 2013, 07:03:47 PM
Strange, I haven't seen this before. I notice you're using Circuit Line styles, does it do the same thing with Bezier lines?
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 28, 2013, 07:05:33 PM
Yes it does.  Sadly I have found no workarounds.
Title: Re: Graph view Links not visible
Post by: Alex Chouls on July 28, 2013, 08:38:50 PM
The line texture is stored in the dll. But there is a mechanism to override the graphics with pngs in resource folders.

I wonder if it's finding a graphic in one of your resource folders and using that instead. Do you have a line.png in your project? I assumed that Unity would only look in PlayMaker/Editor/Resources, but now that I think about it, that's probably a bad assumption...

Try putting the attached line.png file in a PlayMaker/Editor/Resources folder.

If that fixes it, I'll takes a look at the resource loader and fix it for the next update...
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 28, 2013, 08:52:04 PM
I don't have a PlayMaker/Editor/Resources folder.

I have a folder for each.
PlayMaker/Editor (there is no Resources folder within this one)
PlayMaker/Resources
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 28, 2013, 08:55:56 PM
"Do you have a line.png in your project?"

Nope.
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 28, 2013, 08:58:30 PM
Tried adding a Resources folder within PlayMaker\Editor folder and putting that image in it, also tried putting it in the PlayMaker\Editor and PlayMaker\Resources folders. No luck.
Title: Re: Graph view Links not visible
Post by: Alex Chouls on July 28, 2013, 10:55:44 PM
Is it like that when you add Playmaker to a new empty project?
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 28, 2013, 11:04:19 PM
The folder structure is yes, though the links display fine.
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 28, 2013, 11:14:05 PM
Note, reimporting does not help.
Title: Re: Graph view Links not visible
Post by: Alex Chouls on July 28, 2013, 11:51:34 PM
Sorry I wasn't clear. The folder structure is as expected. You would have to make the Resources folder under PlayMaker/Editor.

What I meant is, are the links visible in an empty project that you import Playmaker into?
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 29, 2013, 12:01:27 AM
Yes the links are visible in the empty project. You weren't unclear, apparently I was ;)
Title: Re: Graph view Links not visible
Post by: Alex Chouls on July 29, 2013, 01:12:02 AM
Are you sure you don't have a texture called "line" in any resource folder? It actually wouldn't need to be a png. I can repro the problem here if I put a bad line texture in a Resources folder...

EDIT: Actually I noticed that the arrow heads are also fainter than they should be, so it's probably something else. Maybe GUIStyles somehow leaking between EditorWindows... Does this happen with only the Playmaker Editor open (no other third party windows open)?
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 29, 2013, 01:22:12 AM
I am sure.  I do not have a texture called "line" in any folder.

"Does this happen with only the Playmaker Editor open (no other third party windows open)?"
Yes. The Playmaker is the only third party window open, it is in fact the only window open other than the Unity standard 2by3 layout.
Title: Re: Graph view Links not visible
Post by: Alex Chouls on July 29, 2013, 12:21:09 PM
Since it works in an empty project, my strategy would be to copy the project and delete stuff until it works to find the culprit... once we know what's causing it we can decide on the best fix. If you want you can send me the project to look at...
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 29, 2013, 06:11:08 PM
Tried that last night but apparently needed to reopen the project after each delete.  The culprit is the projector shadow material in standard assets, which I am using in the project. Very odd...

Assets\Standard Assets\Projectors\Sources\Materials\Shadow Material
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 29, 2013, 06:18:47 PM
Wow, it is even stranger than that.... the problem in Playmaker is because where I am using that shadow material, I have not given the material an image for the Falloff.  It has an image for the Cookie but not the falloff because I didn't want one.  If I set an image for the falloff and reopen the project, Playmaker is fine...

I can record a video showing this and send it to you if you want.
Title: Re: Graph view Links not visible
Post by: Alex Chouls on July 29, 2013, 06:35:17 PM
Very strange... it sounds like a Unity bug, like the shadow material leaves the editor in a bad draw state. But there might be a workaround if I can repro, so yes please, a video would be great :)
Title: Re: Graph view Links not visible
Post by: Raptor5399 on July 29, 2013, 07:06:14 PM
I have reported the bug to Unity and emailed you a video.  For now, the workaround for me is to give the material a FallOff image and reopen the project.