steampunk-quest/Assets/QuickOutline
2022-01-25 15:19:44 +03:00
..
Resources add meta files 2022-01-25 15:19:44 +03:00
Samples add meta files 2022-01-25 15:19:44 +03:00
Scripts add meta files 2022-01-25 15:00:17 +03:00
Readme.txt create learning system 2022-01-20 18:40:44 +03:00
Readme.txt.meta add meta files 2022-01-25 15:19:44 +03:00
Resources.meta add meta files 2022-01-25 15:00:17 +03:00
Samples.meta add meta files 2022-01-25 15:00:17 +03:00
Scripts.meta add meta files 2022-01-25 15:00:17 +03:00

QuickOutline
============

Developed by Chris Nolet (c) 2018


Instructions
------------

To add an outline to an object, drag-and-drop the Outline.cs script onto the
object. The outline materials will be loaded at runtime.

You can also add outlines programmatically with:

    var outline = gameObject.AddComponent<Outline>();

    outline.OutlineMode = Outline.Mode.OutlineAll;
    outline.OutlineColor = Color.yellow;
    outline.OutlineWidth = 5f;

The outline script does a small amount of work in Awake(). For best
results, use outline.enabled to toggle the outline. Avoid removing and
re-adding the component if possible.

For large meshes, you may also like to enable 'Precompute Outline' in the
editor. This will reduce the amount of work performed in Awake().