If the Front Paramaeters Dilate is changing, then both AC and the integration are working.
In the Outlinable component, you need to assign the Hotspot's Sprite Renderer to the list of Renderers at the bottom. See the asset's own documentation for details on how to use it.
Ok, does the hotspot have to be on the same object as the sprite then? Followed the documentation and seem to have done everything right, just confused on whether the hotpost should be on same gameobject as sprite, and then the Easy Outline attached to that game object? Before I had a seperate hotspot, and the sprite it highlighted was on a seperate game object too.
The Hotspot and Sprite need not be on the same object - the wiki script and Outlineable component should be attached to the Hotspot, and then the Outlineable should reference the Sprite Renderer in its Inspector.
Comments
You'll need to rely on a custom shader that can add your intended effect, and hook into the Highlight component's events to apply/remove it.
An example can be found on the wiki here, which causes objects to be given outlines via this asset.
If you create a custom shader using ShaderGraph to perform another effect, the script can be adapted to affect a material's property instead.
ok thanks!
ok thanks!
Hey Chris, did you create the wiki page? Having some trouble getting this to work.
1. Attach the Outliner component to your AC MainCamera.
So this is for any scenes AC Main Camera?
5. Configure its Inspector so that it affects the correct meshes.
Not sure where on the Outliner script I do this? ( I am in 2D and have URP)
When I hover over I see that the Front Parameters DIlate goes up to 1 (see screenshot) but nothing happens to the hotspot visually.
https://www.dropbox.com/sh/gk62wi0el03djdy/AAAM_uSQxZhI3iMviPgK4ySua?dl=0
Thanks in advance Chris
If the Front Paramaeters Dilate is changing, then both AC and the integration are working.
In the Outlinable component, you need to assign the Hotspot's Sprite Renderer to the list of Renderers at the bottom. See the asset's own documentation for details on how to use it.
Ok, does the hotspot have to be on the same object as the sprite then? Followed the documentation and seem to have done everything right, just confused on whether the hotpost should be on same gameobject as sprite, and then the Easy Outline attached to that game object? Before I had a seperate hotspot, and the sprite it highlighted was on a seperate game object too.
The Hotspot and Sprite need not be on the same object - the wiki script and Outlineable component should be attached to the Hotspot, and then the Outlineable should reference the Sprite Renderer in its Inspector.
So when I add the Easy Outline wiki script, the Outlinable comp is added, but I cannot add a sprite to the outlinable script. see video & screenshot:
https://www.dropbox.com/sh/tk7n3o8x72g1x27/AAC-8I52qCwGVNFlpLZ12s4Qa?dl=0
You'll need to consult the docs / author of the asset in question - AC is not involved with the behaviour of the Outlineable component's Inspector.
Realised it is because the asset doesn't support New 2D Renderer yet, So can you help me with the other option?
The material for URP is Sprites Lit.
You will need a custom shader, made using Shader graph, that handles the effect you're looking for (e.g. brighten) based on a float input.
You can then expose that input in your material's Inspector, and adjust it through script.