-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7968 from Unity-Technologies/internal/2023.1/staging
Internal/2023.1/staging
- Loading branch information
Showing
93 changed files
with
28,738 additions
and
251 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
34 changes: 34 additions & 0 deletions
34
Packages/com.unity.render-pipelines.core/Editor/AssetDatabaseHelper.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,34 @@ | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace UnityEditor.Rendering | ||
{ | ||
/// <summary> Set of helpers for AssetDatabase operations. </summary> | ||
public static class AssetDatabaseHelper | ||
{ | ||
/// <summary> | ||
/// Finds all assets of type T in the project. | ||
/// </summary> | ||
/// <param name="extension">Asset type extension i.e ".mat" for materials</param> | ||
/// <typeparam name="T">The type of material you are looking for</typeparam> | ||
/// <returns>A IEnumerable object</returns> | ||
public static IEnumerable<T> FindAssets<T>(string extension = null) | ||
{ | ||
string typeName = typeof(T).ToString(); | ||
int i = typeName.LastIndexOf('.'); | ||
if (i != -1) | ||
{ | ||
typeName = typeName.Substring(i+1, typeName.Length - i-1); | ||
} | ||
|
||
string query = !string.IsNullOrEmpty(extension) ? $"t:{typeName} glob:\"**/*{extension}\"" : $"t:{typeName}"; | ||
|
||
foreach (var guid in AssetDatabase.FindAssets(query)) | ||
{ | ||
var asset = AssetDatabase.LoadMainAssetAtPath(AssetDatabase.GUIDToAssetPath(guid)); | ||
if (asset is T castAsset) | ||
yield return castAsset; | ||
} | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Packages/com.unity.render-pipelines.core/Editor/AssetDatabaseHelper.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 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
4 changes: 2 additions & 2 deletions
4
Packages/com.unity.render-pipelines.high-definition-config/package.json
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name": "com.unity.render-pipelines.high-definition-config", | ||
"description": "Configuration files for the High Definition Render Pipeline.", | ||
"version": "15.0.6", | ||
"version": "15.0.7", | ||
"unity": "2023.1", | ||
"displayName": "High Definition RP Config", | ||
"dependencies": { | ||
"com.unity.render-pipelines.core": "15.0.6" | ||
"com.unity.render-pipelines.core": "15.0.7" | ||
} | ||
} |
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
27 changes: 27 additions & 0 deletions
27
...y.render-pipelines.high-definition/Editor/RenderPipeline/Raytracing/LightClusterEditor.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,27 @@ | ||
using UnityEngine; | ||
using UnityEngine.Rendering; | ||
using UnityEngine.Rendering.HighDefinition; | ||
|
||
namespace UnityEditor.Rendering.HighDefinition | ||
{ | ||
[CanEditMultipleObjects] | ||
[CustomEditor(typeof(LightCluster))] | ||
class LightClusterEditor : VolumeComponentEditor | ||
{ | ||
public override void OnInspectorGUI() | ||
{ | ||
HDRenderPipelineAsset currentAsset = HDRenderPipeline.currentAsset; | ||
bool notSupported = currentAsset != null && !currentAsset.currentPlatformRenderPipelineSettings.supportRayTracing; | ||
if (notSupported) | ||
{ | ||
EditorGUILayout.Space(); | ||
HDEditorUtils.QualitySettingsHelpBox(HDRenderPipelineUI.Styles.rayTracingUnsupportedMessage, | ||
MessageType.Warning, HDRenderPipelineUI.ExpandableGroup.Rendering, | ||
"m_RenderPipelineSettings.supportRayTracing"); | ||
} | ||
using var disableScope = new EditorGUI.DisabledScope(notSupported); | ||
|
||
base.OnInspectorGUI(); | ||
} | ||
} | ||
} |
Oops, something went wrong.