-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,274 additions
and
444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
Assets/Plugins/UnityFx.Outline/Runtime/Scripts/IOutlineSettings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright (C) 2019 Alexander Bogarsukov. All rights reserved. | ||
// See the LICENSE.md file in the project root for more information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEngine.Rendering; | ||
|
||
namespace UnityFx.Outline | ||
{ | ||
/// <summary> | ||
/// Defines outline settings. | ||
/// </summary> | ||
public interface IOutlineSettings | ||
{ | ||
/// <summary> | ||
/// Gets or sets outline color. | ||
/// </summary> | ||
/// <seealso cref="OutlineWidth"/> | ||
/// <seealso cref="OutlineMode"/> | ||
Color OutlineColor { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets outline width in pixels. Allowed range is [<see cref="OutlineRenderer.MinWidth"/>, <see cref="OutlineRenderer.MaxWidth"/>]. | ||
/// </summary> | ||
/// <seealso cref="OutlineColor"/> | ||
/// <seealso cref="OutlineMode"/> | ||
int OutlineWidth { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets outline intensity value. Allowed range is [<see cref="OutlineRenderer.MinIntensity"/>, <see cref="OutlineRenderer.MaxIntensity"/>]. | ||
/// </summary> | ||
float OutlineIntensity { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets outline mode. | ||
/// </summary> | ||
/// <seealso cref="OutlineWidth"/> | ||
/// <seealso cref="OutlineColor"/> | ||
OutlineMode OutlineMode { get; set; } | ||
|
||
/// <summary> | ||
/// Forces the settings to be re-applied and the outline to be re-rendered. | ||
/// </summary> | ||
void Invalidate(); | ||
} | ||
} |
4 changes: 1 addition & 3 deletions
4
...time/Scripts/OutlineResourceCache.cs.meta → .../Runtime/Scripts/IOutlineSettings.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.