浏览代码

First working version of plyamode graphic test

/main
Remy 7 年前
当前提交
a9b5ae63
共有 23 个文件被更改,包括 537 次插入200 次删除
  1. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1101_Unlit.unity.png.meta
  2. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1102_Unlit_Distortion.unity.png.meta
  3. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1103_Unlit_Distortion_DepthTest.unity.png.meta
  4. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1201_Lit_Features.unity.png.meta
  5. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1202_Lit_DoubleSideNormalMode.unity.png.meta
  6. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1203_Lit_Transparent.unity.png.meta
  7. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1204_Lit_Transparent_Fog.unity.png.meta
  8. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1205_Lit_Transparent_Refraction.unity.png.meta
  9. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1206_Lit_Transparent_Distortion.unity.png.meta
  10. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1207_Lit_Displacement.unity.png.meta
  11. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1208_Lit_Displacement_POM.unity.png.meta
  12. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1209_Lit_Displacement_Vertex.unity.png.meta
  13. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1210_Lit_BentNormal.unity.png.meta
  14. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1211_Lit_Details.unity.png.meta
  15. 6
      ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1212_Lit_Emission.unity.png.meta
  16. 10
      Tests/GraphicsTests/Framework/Editor/PlayModeTestFramework.cs
  17. 3
      Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/ComparerShader.shader
  18. 143
      Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/Comparer_Test.png
  19. 13
      Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/PlayModeTests.unity
  20. 214
      Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/PlayModeTestsUI.cs
  21. 264
      Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/PlayModeTestsUI.prefab
  22. 0
      /Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest.meta
  23. 0
      /Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1101_Unlit.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1102_Unlit_Distortion.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1103_Unlit_Distortion_DepthTest.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1201_Lit_Features.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1202_Lit_DoubleSideNormalMode.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1203_Lit_Transparent.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1204_Lit_Transparent_Fog.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1205_Lit_Transparent_Refraction.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1206_Lit_Transparent_Distortion.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1207_Lit_Displacement.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1208_Lit_Displacement_POM.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1209_Lit_Displacement_Vertex.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1210_Lit_BentNormal.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1211_Lit_Details.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

6
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1212_Lit_Emission.unity.png.meta


filterMode: -1
aniso: -1
mipBias: -1
wrapU: -1
wrapV: -1
wrapW: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50

10
Tests/GraphicsTests/Framework/Editor/PlayModeTestFramework.cs


public class PlayModeTestFramework : EditorWindow
{
static string scenesRootPath = "/Tests/GraphicsTests/RenderPipeline/HDRenderPipeline";
static string scenesRootPath = "/Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/Scenes";
[MenuItem("Internal/GraphicTest Tools/PlayMode Test Window")]
public static void OpenPlayModeTestWindow()

{
EditorBuildSettingsScene[] prevScenes = EditorBuildSettings.scenes;
EditorBuildSettingsScene[] testScenes = new EditorBuildSettingsScene[allPaths.Length];
EditorBuildSettingsScene[] testScenes = new EditorBuildSettingsScene[allPaths.Length+1];
testScenes[0] = new EditorBuildSettingsScene(Application.dataPath+ "/Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/PlayModeTests.unity", true);
testScenes[i] = new EditorBuildSettingsScene(allPaths[i], true);
testScenes[i+1] = new EditorBuildSettingsScene(allPaths[i], true);
}
Debug.Log("Do build in : " + Application.dataPath + "/../Builds/GraphicTests/GraphicTestBuildPC.exe");

//System.IO.Directory.Move(Application.dataPath + "/ImageTemplates/HDRenderPipeline", Application.dataPath + "/ImageTemplates/Resources/HDRenderPipeline");
// BuildPipeline.BuildPlayer(testScenes, Application.dataPath + "/../Builds/GraphicTests/GraphicTestBuildPC.exe", BuildTarget.StandaloneWindows64, BuildOptions.None);
BuildPipeline.BuildPlayer(testScenes, Application.dataPath + "/../Builds/GraphicTests/GraphicTestBuildPC.exe", BuildTarget.StandaloneWindows64, BuildOptions.None);
// Move back Templates to their folder
for (int i = 0; i < templates.Length; ++i)

3
Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/ComparerShader.shader


fixed4 frag (v2f i) : SV_Target
{
fixed4 c1 = tex2D(_MainTex, i.uv);
fixed4 c2 = tex2D(_CompareTex, i.uv);
float2 uv2 = float2(i.uv.x, 1-i.uv.y);
fixed4 c2 = tex2D(_CompareTex, uv2);
fixed4 o = c1 - c2;
o.a = 1;

143
Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/Comparer_Test.png

之前 之后
宽度: 128  |  高度: 64  |  大小: 29 KiB

13
Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/PlayModeTests.unity


m_ReflectionIntensity: 0
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0

m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!114 &319763168 stripped
MonoBehaviour:
m_PrefabParentObject: {fileID: 114563891725493384, guid: 45351acbe8482b74da5758589fb97889,
type: 2}
m_PrefabInternal: {fileID: 1442888911}
m_Script: {fileID: -98529514, guid: f70555f144d8491a825f0804e09c671c, type: 3}
--- !u!1 &679160865
GameObject:
m_ObjectHideFlags: 0

propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 114475795168163414, guid: 45351acbe8482b74da5758589fb97889,
type: 2}
propertyPath: resultImage
value:
objectReference: {fileID: 319763168}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: 45351acbe8482b74da5758589fb97889, type: 2}
m_IsPrefabParent: 0

214
Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/PlayModeTestsUI.cs


[SerializeField] RawImage resultImage;
Material resultComparerMaterial;
[SerializeField] Gradient fillGradient = new Gradient() { colorKeys = new GradientColorKey[] {
new GradientColorKey( Color.red, 0.5f),
new GradientColorKey( Color.yellow, 0.75f),
new GradientColorKey( Color.green, 0.97f),
} };
int numOfResults = 1;
List<GameObject> testResults;
int[] avgResults;

Texture2D currentTemplate;
RenderTexture currentRT;
RenderTexture resultRT;
Text scenePanelText;
Image waitingImage;
// Use this for initialization
void Start ()

singleTestResult.anchorMax = new Vector2(1, 0);
singleTestResult.offsetMin = new Vector2(0, scrollView.content.rect.height - (i + 1) * 200f);
singleTestResult.offsetMax = new Vector2(0, singleTestResult.offsetMin.y + 200f);
int sceneIndex = i;
singleTestResult.GetComponent<Button>().onClick.AddListener(delegate () { LoadSceneResult(sceneIndex); });
//* Test the values
SetResult(i, 1.0f * i / (numOfResults - 1), 0.5f);

waitingPanel.SetActive(false);
scenePanel.SetActive(false);
resultComparerMaterial = resultImage.material;
resultComparerMaterial = Instantiate( resultImage.material );
resultImage.material = resultComparerMaterial;
// Initialize render textures
resultRT = new RenderTexture(1920, 1080, 0, RenderTextureFormat.ARGB32);
scenePanelText = scenePanel.transform.Find("Text").GetComponent<Text>();
waitingImage = waitingPanel.transform.Find("Image").GetComponent<Image>();
// Load scenes and calculate the results.
StartCoroutine(CalculateAllResults());

resultsAvgValue[_index].text = avgResults[_index].ToString() + "%";
resultsAvgFill[_index].localScale = new Vector3(_avgValue, 1f, 1f);
resultsAvgFill[_index].GetComponent<Image>().color = fillGradient.Evaluate(_avgValue);
resultsAvgValue[_index].text = maxResults[_index].ToString() + "%";
resultsAvgFill[_index].localScale = new Vector3(_maxValue, 1f, 1f);
resultsMaxValue[_index].text = maxResults[_index].ToString() + "%";
resultsMaxFill[_index].localScale = new Vector3(_maxValue, 1f, 1f);
resultsAvgFill[_index].GetComponent<Image>().color = fillGradient.Evaluate(1f-_maxValue);
}
void CalculateOverall()

for (int i=0; i<numOfResults; ++i)
{
overallAvgResult += 1.0f*avgResults[i];
overallAvgResult += 1.0f * avgResults[i];
overallMaxResult += 1.0f * maxResults[i];
}
overallAvgResult /= numOfResults;

overallAvgText.text = Mathf.RoundToInt(overallAvgResult).ToString() + "%";
overallAvgFill.GetComponent<Image>().color = fillGradient.Evaluate(overallAvgResult * 0.01f);
overallMaxFill.GetComponent<Image>().color = fillGradient.Evaluate(1f- overallMaxResult * 0.01f);
}
IEnumerator CalculateAllResults()

scenePanel.SetActive(false);
waitingImage.fillAmount = 0f;
UnityEngine.SceneManagement.SceneManager.LoadScene(i + 1);
yield return CalculateResult(i);
waitingImage.fillAmount = 1f * (1f+i) / numOfResults;
waitingImage.color = Color.Lerp(Color.blue, Color.green, 1f * i / (numOfResults - 1));
}
CalculateOverall();
UnityEngine.SceneManagement.SceneManager.LoadScene(0);
resultsPanel.SetActive(true);
waitingPanel.SetActive(false);
scenePanel.SetActive(false);
yield return null;
}
IEnumerator CalculateResult(int _index)
{
UnityEngine.SceneManagement.SceneManager.LoadScene(_index + 1);
yield return null;
var testSetup = FindObjectOfType<UnityEngine.Experimental.Rendering.SetupSceneForRenderPipelineTest>();
testSetup.Setup();
for (int f = 0; f < frameWait; ++f)
{
}
resultsLabels[i].text = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name;
resultsLabels[_index].text = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name;
var testSetup = FindObjectOfType<UnityEngine.Experimental.Rendering.SetupSceneForRenderPipelineTest>();
testSetup.Setup();
Debug.Log("Get " + UnityEngine.SceneManagement.SceneManager.GetActiveScene().name);
for (int f = 0; f < frameWait; ++f)
{
yield return null;
}
// find the reference image
currentTemplate = Resources.Load<Texture2D>(UnityEngine.SceneManagement.SceneManager.GetActiveScene().name + ".unity");
resultImage.texture = currentTemplate;
Camera testCamera = testSetup.cameraToUse;
var rtDesc = new RenderTextureDescriptor(
testSetup.width,
testSetup.height,
(testSetup.hdr && testCamera.allowHDR) ? RenderTextureFormat.ARGBHalf : RenderTextureFormat.ARGB32,
24);
rtDesc.sRGB = false;
rtDesc.msaaSamples = testSetup.msaaSamples;
// Descriptor for the render textures
RenderTextureDescriptor desc = new RenderTextureDescriptor()
{
width = currentTemplate.width,
height = currentTemplate.height,
autoGenerateMips = false,
colorFormat = RenderTextureFormat.ARGB32,
msaaSamples = testSetup.msaaSamples,
sRGB = true,
volumeDepth = 1,
dimension = UnityEngine.Rendering.TextureDimension.Tex2D,
};
// render the scene
var tempTarget = RenderTexture.GetTemporary(rtDesc);
var oldTarget = testSetup.cameraToUse.targetTexture;
testSetup.cameraToUse.targetTexture = tempTarget;
testSetup.cameraToUse.Render();
testSetup.cameraToUse.targetTexture = oldTarget;
// re-create the render textures to correct size
DestroyImmediate(currentRT);
currentRT = new RenderTexture(desc);
DestroyImmediate(resultRT);
resultRT = new RenderTexture(desc);
currentRT.filterMode = resultRT.filterMode = FilterMode.Bilinear;
currentRT.wrapMode = resultRT.wrapMode = TextureWrapMode.Clamp;
// Readback the rendered texture
var oldActive = RenderTexture.active;
RenderTexture.active = tempTarget;
var captured = new Texture2D(tempTarget.width, tempTarget.height, TextureFormat.RGB24, false);
captured.ReadPixels(new Rect(0, 0, testSetup.width, testSetup.height), 0, 0);
RenderTexture.active = oldActive;
Camera testCamera = testSetup.cameraToUse;
// find the reference image
var template = Resources.Load<Texture2D>(UnityEngine.SceneManagement.SceneManager.GetActiveScene().name+".unity");
// render the scene
var oldTarget = testSetup.cameraToUse.targetTexture;
testSetup.cameraToUse.targetTexture = currentRT;
testSetup.cameraToUse.Render();
testSetup.cameraToUse.targetTexture = oldTarget;
// compare
Vector2 compareResult = CompareTextures(template, captured);
// render comparision RT
resultComparerMaterial.SetFloat("_ResultSplit", 1f);
resultComparerMaterial.SetInt("_Mode", 4);
resultComparerMaterial.SetTexture("_MainTex", currentTemplate);
resultComparerMaterial.SetTexture("_CompareTex", currentRT);
SetResult(i, 1f- compareResult.x, compareResult.y);
Graphics.Blit(currentTemplate, resultRT, resultComparerMaterial);
yield return null;
}
// Readback the rendered texture
var oldActive = RenderTexture.active;
RenderTexture.active = resultRT;
var captured = new Texture2D(resultRT.width, resultRT.height, TextureFormat.RGB24, false);
captured.ReadPixels(new Rect(0, 0, testSetup.width, testSetup.height), 0, 0);
RenderTexture.active = oldActive;
CalculateOverall();
// compare
Vector2 compareResult = ReadCompareTexture(captured);
UnityEngine.SceneManagement.SceneManager.LoadScene(0);
SetResult(_index, 1f - compareResult.x, compareResult.y);
resultsPanel.SetActive(true);
waitingPanel.SetActive(false);
scenePanel.SetActive(false);
// Set the compare material values for display if needed
resultComparerMaterial.SetFloat("_Split", 0.5f);
resultComparerMaterial.SetFloat("_ResultSplit", 0f);
resultComparerMaterial.SetInt("_Mode", 4);
private Vector2 ReadCompareTexture(Texture2D captured)
{
if (captured == null)
return Vector2.one;
var pixels = captured.GetPixels();
int numberOfPixels = pixels.Length;
float sumOfDiff = 0;
float maxDiff = 0f;
for (int i = 0; i < numberOfPixels; i++)
{
maxDiff = Mathf.Max(maxDiff, pixels[i].r);
sumOfDiff += pixels[i].r;
}
return new Vector2(Mathf.Sqrt(sumOfDiff / numberOfPixels), maxDiff);
}
private Vector2 CompareTextures(Texture2D fromDisk, Texture2D captured)
{
if (fromDisk == null || captured == null)

return new Vector2( Mathf.Sqrt(sumOfSquaredColorDistances / numberOfPixels), maxSquaredColorDistance );
}
void LoadSceneResult(int _index)
{
if ((_index <0 ) || (_index >= ( UnityEngine.SceneManagement.SceneManager.sceneCountInBuildSettings-1))) return;
Debug.Log("Load Scene Results : " + _index);
// CalculateResult(_index);
StartCoroutine(CalculateResult(_index));
scenePanelText.text = resultsLabels[_index].text;
resultsPanel.SetActive(false);
waitingPanel.SetActive(false);
scenePanel.SetActive(true);
}
// Update is called once per frame
void Update ()
{

if (scenePanel.activeSelf)
{
resultComparerMaterial.SetFloat("_Split", Mathf.Clamp01(resultComparerMaterial.GetFloat("_Split") + Input.GetAxis("Horizontal") * Time.deltaTime * 0.3f));
resultComparerMaterial.SetFloat("_ResultSplit", Mathf.Clamp01(resultComparerMaterial.GetFloat("_ResultSplit") + Input.GetAxis("Vertical") * Time.deltaTime * 0.3f));
// Scale the raw image to display at the correct aspect ratio
Rect parentRect = resultImage.rectTransform.parent.GetComponent<RectTransform>().rect;
float parentRatio = parentRect.width / parentRect.height;
float templateRatio = resultImage.texture.width / resultImage.texture.height;
Debug.Log("Parent : " + parentRect.width + " / " + parentRect.height + " ||| Child : " + resultImage.texture.width + " / " + resultImage.texture.height);
float resultRatio = 2f * parentRatio / templateRatio;
if (resultRatio > 1)
{
resultImage.rectTransform.anchorMin = new Vector2(0.5f / resultRatio, 0f);
resultImage.rectTransform.anchorMax = new Vector2(1f - 0.5f / resultRatio, 1f);
}
else
{
resultImage.rectTransform.anchorMin = new Vector2(0f, 0.5f / resultRatio);
resultImage.rectTransform.anchorMax = new Vector2(1f, 1f - 0.5f / resultRatio);
}
resultComparerMaterial.SetFloat("_Split", Mathf.Clamp01(resultComparerMaterial.GetFloat("_Split") + Input.GetAxis("Horizontal") * Time.deltaTime));
resultComparerMaterial.SetFloat("_ResultSplit", Mathf.Clamp01(resultComparerMaterial.GetFloat("_ResultSplit") + Input.GetAxis("Vertical") * Time.deltaTime));
if (Input.GetButtonDown("Fire2"))
{
resultsPanel.SetActive(true);
waitingPanel.SetActive(false);
scenePanel.SetActive(false);
}
}
}
}

264
Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest/PlayModeTestsUI.prefab


m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1035794151665414
GameObject:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
m_Component:
- component: {fileID: 224659037140177262}
- component: {fileID: 222579332494692566}
- component: {fileID: 114112737969120372}
m_Layer: 0
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1065728208235398
GameObject:
m_ObjectHideFlags: 1

m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1276259971427084
GameObject:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
m_Component:
- component: {fileID: 224067730969830148}
- component: {fileID: 222785864068866602}
- component: {fileID: 114375198899685756}
m_Layer: 0
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1277958403419726
GameObject:
m_ObjectHideFlags: 1

m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!1 &1572296723254956
GameObject:
m_ObjectHideFlags: 0

- component: {fileID: 224276964127273536}
m_Layer: 0
m_Name: WaitingPanel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1730306804831054
GameObject:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
m_Component:
- component: {fileID: 224940376111594208}
- component: {fileID: 222811403609370042}
- component: {fileID: 114817778538197614}
m_Layer: 0
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 66%
--- !u!114 &114112737969120372
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1035794151665414}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: New Text
--- !u!114 &114170701846619450
MonoBehaviour:
m_ObjectHideFlags: 1

m_Name:
m_EditorClassIdentifier:
m_ShowMaskGraphic: 0
--- !u!114 &114375198899685756
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1276259971427084}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 3
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 0
m_FillClockwise: 1
m_FillOrigin: 2
--- !u!114 &114446323032675476
MonoBehaviour:
m_ObjectHideFlags: 1

testResultPrefab: {fileID: 224331594053107772, guid: 43ade173a9121b64aa9bdf1dd64ab43d,
type: 2}
scrollView: {fileID: 114520121233900464}
resultImage: {fileID: 0}
resultImage: {fileID: 114563891725493384}
fillGradient:
serializedVersion: 2
key0: {r: 1, g: 0, b: 0, a: 1}
key1: {r: 1, g: 0.92156863, b: 0.015686275, a: 1}
key2: {r: 0, g: 1, b: 0, a: 0}
key3: {r: 0, g: 1, b: 0, a: 0}
key4: {r: 0, g: 0, b: 0, a: 0}
key5: {r: 0, g: 0, b: 0, a: 0}
key6: {r: 0, g: 0, b: 0, a: 0}
key7: {r: 0, g: 0, b: 0, a: 0}
ctime0: 32768
ctime1: 49151
ctime2: 63569
ctime3: 65535
ctime4: 0
ctime5: 0
ctime6: 0
ctime7: 0
atime0: 0
atime1: 65535
atime2: 0
atime3: 0
atime4: 0
atime5: 0
atime6: 0
atime7: 0
m_Mode: 0
m_NumColorKeys: 3
m_NumAlphaKeys: 2
--- !u!114 &114484766800715236
MonoBehaviour:
m_ObjectHideFlags: 1

m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: 52c77b86de47cf043a0140cdd2f021e9, type: 2}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastTarget: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []

m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
--- !u!114 &114817778538197614
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1730306804831054}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.3018868, g: 0.27811322, b: 0.24905661, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
--- !u!114 &114879871165431850
MonoBehaviour:
m_ObjectHideFlags: 1

m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1390928790235130}
--- !u!222 &222579332494692566
CanvasRenderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1035794151665414}
--- !u!222 &222654889547727336
CanvasRenderer:
m_ObjectHideFlags: 1

m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1836563324546044}
--- !u!222 &222785864068866602
CanvasRenderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1276259971427084}
--- !u!222 &222811403609370042
CanvasRenderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1730306804831054}
--- !u!222 &222901964873968254
CanvasRenderer:
m_ObjectHideFlags: 1

m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!224 &224067730969830148
RectTransform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1276259971427084}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 224276964127273536}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 400, y: 400}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!224 &224151907326375976
RectTransform:
m_ObjectHideFlags: 1

m_Children:
- {fileID: 224048425906743836}
m_Father: {fileID: 224879846594913820}
m_RootOrder: 0
m_RootOrder: 2
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0.8}
m_AnchoredPosition: {x: 0, y: 10}
m_SizeDelta: {x: -40, y: -20}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!224 &224179099801193266
RectTransform:

m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Children:
- {fileID: 224067730969830148}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}

m_Children:
- {fileID: 4970899693442488}
- {fileID: 224759732305455538}
- {fileID: 224276964127273536}
- {fileID: 224276964127273536}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!224 &224659037140177262
RectTransform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1035794151665414}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 224879846594913820}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.8}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -20, y: -20}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!224 &224694414404768322
RectTransform:
m_ObjectHideFlags: 1

m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 224940376111594208}
- {fileID: 224659037140177262}
m_RootOrder: 3
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}

m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0.5}
--- !u!224 &224940376111594208
RectTransform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1730306804831054}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 224879846594913820}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!224 &224942337409710678
RectTransform:
m_ObjectHideFlags: 1

/Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/Scenes/_PlayModeTest_.meta → /Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest.meta

/Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/Scenes/_PlayModeTest_ → /Tests/GraphicsTests/RenderPipeline/HDRenderPipeline/PlayModeTest

正在加载...
取消
保存