-
Notifications
You must be signed in to change notification settings - Fork 855
SRP Workflows - Move VolumeDebugSettings to Core #5580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7467af9
SRP Workflows - VolumeDebugSettings to Core Package
alex-vazquez-unity3d b64a0b5
Fix compilation
alex-vazquez-unity3d fd31e96
keep the obsolete for another pr
alex-vazquez-unity3d 9e7ee22
Docs
alex-vazquez-unity3d f64e1c3
Feedback from code review
alex-vazquez-unity3d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
65 changes: 65 additions & 0 deletions
65
com.unity.render-pipelines.core/Runtime/Debugging/IVolumeDebugSettings.cs
This file contains hidden or 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,65 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using UnityEditor; | ||
|
||
namespace UnityEngine.Rendering | ||
{ | ||
/// <summary> | ||
/// Volume debug settings. | ||
/// </summary> | ||
public interface IVolumeDebugSettings | ||
{ | ||
/// <summary>Selected component.</summary> | ||
int selectedComponent { get; set; } | ||
|
||
/// <summary>Current camera to debug.</summary> | ||
Camera selectedCamera { get; } | ||
|
||
/// <summary>Returns the collection of registered cameras.</summary> | ||
IEnumerable<Camera> cameras { get; } | ||
|
||
/// <summary>Selected camera index.</summary> | ||
int selectedCameraIndex { get; set; } | ||
|
||
/// <summary>Selected camera volume stack.</summary> | ||
VolumeStack selectedCameraVolumeStack { get; } | ||
|
||
/// <summary>Selected camera volume layer mask.</summary> | ||
LayerMask selectedCameraLayerMask { get; } | ||
|
||
/// <summary>Selected camera volume position.</summary> | ||
Vector3 selectedCameraPosition { get; } | ||
|
||
/// <summary>Type of the current component to debug.</summary> | ||
Type selectedComponentType { get; set; } | ||
|
||
/// <summary> | ||
/// Obtains the Volumes | ||
/// </summary> | ||
/// <returns>The list of <see cref="Volume"/></returns> | ||
Volume[] GetVolumes(); | ||
|
||
/// <summary> | ||
/// Return if the <see cref="Volume"/> has influence | ||
/// </summary> | ||
/// <param name="volume"><see cref="Volume"/> to check the influence</param> | ||
/// <returns>If the volume has influence</returns> | ||
bool VolumeHasInfluence(Volume volume); | ||
|
||
/// <summary> | ||
/// Refreshes the volumes, fetches the stored volumes on the panel | ||
/// </summary> | ||
/// <param name="newVolumes">The list of <see cref="Volume"/> to refresh</param> | ||
/// <returns>If the volumes have been refreshed</returns> | ||
bool RefreshVolumes(Volume[] newVolumes); | ||
|
||
/// <summary> | ||
/// Obtains the volume weight | ||
/// </summary> | ||
/// <param name="volume"><see cref="Volume"/></param> | ||
/// <returns>The weight of the volume</returns> | ||
float GetVolumeWeight(Volume volume); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...inition/Runtime/Debug/VolumeDebug.cs.meta → ...me/Debugging/IVolumeDebugSettings.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
11 changes: 11 additions & 0 deletions
11
com.unity.render-pipelines.core/Runtime/Debugging/VolumeDebugSettings.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.