Readme.txt 771 B

1234567891011121314151617181920212223242526
  1. QuickOutline
  2. ============
  3. Developed by Chris Nolet (c) 2018
  4. Instructions
  5. ------------
  6. To add an outline to an object, drag-and-drop the Outline.cs script onto the
  7. object. The outline materials will be loaded at runtime.
  8. You can also add outlines programmatically with:
  9. var outline = gameObject.AddComponent<Outline>();
  10. outline.OutlineMode = Outline.Mode.OutlineAll;
  11. outline.OutlineColor = Color.yellow;
  12. outline.OutlineWidth = 5f;
  13. The outline script does a small amount of work in Awake(). For best
  14. results, use outline.enabled to toggle the outline. Avoid removing and
  15. re-adding the component if possible.
  16. For large meshes, you may also like to enable 'Precompute Outline' in the
  17. editor. This will reduce the amount of work performed in Awake().