1
0
mirror of https://projects.caleb-brown.dev/UDRI-XRT/UDRIGEEKCup2024.git synced 2025-01-21 22:58:50 -05:00
UDRIGEEKCup2024/Assets/QuickOutline
2024-04-24 15:52:11 -04:00
..
Resources Added QuickOutline asset 2024-04-24 15:52:11 -04:00
Samples Added QuickOutline asset 2024-04-24 15:52:11 -04:00
Scripts Added QuickOutline asset 2024-04-24 15:52:11 -04:00
Readme.txt Added QuickOutline asset 2024-04-24 15:52:11 -04:00
Readme.txt.meta Added QuickOutline asset 2024-04-24 15:52:11 -04:00
Resources.meta Added QuickOutline asset 2024-04-24 15:52:11 -04:00
Samples.meta Added QuickOutline asset 2024-04-24 15:52:11 -04:00
Scripts.meta Added QuickOutline asset 2024-04-24 15:52:11 -04:00

Quick Outline
=============

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().


Troubleshooting
---------------

If the outline appears off-center, please try the following:

1. Set 'Read/Write Enabled' on each model's import settings.
2. Disable 'Optimize Mesh Data' in the player settings.