i cannot seem to open that binary demo scene or i think it is empty
you can force text in editor settings so the demo scene gets checked in as text instead of binary
Hello, just found this, great asset. However, I have one problem with it
Your demo project works correctly, however in my own scene, the sprite outline is mirrored on the y axis in screen space (if the sprite in at the botton, the outline is at the top, vertically mirrored). I tried to set up everythng like in you demo scene. Any ideas?
I use your asset to draw an outline around item sprites when the cursor is above them. When no item is under the cursor, The outline should disappear. Currently, in Update() of my cursor script I just cast the ray and check if it hits an item, and if yes, then the outLineRenderers list from the Outline script is created anew with the item’s renderer as the sole element. If the ray doesn’t hit an item, the list just gets cleared. What happens is that an error message is thrown by the OutlineEffect script
Attempting to release RenderTexture that were not gotten as a temp buffer
I wonder if it’s save to ignore it; might there be any render texture bleeding or similar?
Edit: Just solved it. I just set the renderTexture to null at the start of preCull whenever I have changed something in the outLineRenderer list.
Hi, thanks a lot, you are a life saver! Althought could you help me to make the outline be black. I was searching for several days and started learning shader thingy, but really I can’t seem to figure out a way to remove transparency when the color is black… Thanks a lot anyway!
I love this script so far. I am trying to tweak it to meet my needs but I’ve been having trouble understanding how the outline renderer colors work. If I have more than 3 objects that I want to apply outlines to in the scene, things seem to break down. I had thought that each Outline Renderer Color corresponded to the Outline Renderer of the same index. And that you could go between a value of 0, 1, or 2 to set the color of that renderer to Line Color 1, 2, and 3. But that doesn’t appear to be the case.
I’ve included a screenshot to give you an idea of what I am messing with. The squares in the scene are stacked in the order they appear in the Outline Renderer list. The Outline Renderer Colors are fine up until the 3rd and 4th element in the list. I want the 3rd element to be yellow and the 4th to be red but they’re both green. I’m trying to add specific outline colors to objects depending on their HP. I have a system in place to populate the lists with the appropriate data, but the colors are behaving like they are in the below screenshot. Maybe it’s not possible to accomplish this with the script but I thought I’d ask. Any insight on this would be super helpful. Thank you!
You’re beautiful. Gonna try it tonight and see how it goes. Although I think I found an alternative to accomplish what I need. But it will be useful regardless. Thank you!
It does not seem like the “outline” layer is used by the script when it draws the outline, is this correct?
I wanted to add a blur to the outline, so I tried to cull the outline from the main camera (so I could pick it up on another camera with a blur effect), but even when all layers are disabled on the main camera, the outline is still drawn.