Skip to content

Modified 709_CameraExtendedCulling scene for better stability #1120

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 1 commit into from
Jul 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ GameObject:
type: 3}
m_PrefabInstance: {fileID: 1934281440}
m_PrefabAsset: {fileID: 0}
--- !u!114 &317366833
--- !u!114 &317366834
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
Expand All @@ -138,13 +138,11 @@ MonoBehaviour:
m_GameObject: {fileID: 317366831}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 14d7896b83927c247821fa13f452106f, type: 3}
m_Script: {fileID: 11500000, guid: d29a2d820d8afeb4a88421fa92f66c71, type: 3}
m_Name:
m_EditorClassIdentifier:
localSpace: 0
angles: {x: -45, y: 0, z: 0}
frequency: 1
fps: 60
anglesToAdd: {x: 45, y: 0, z: 0}
waitFrames: 3
--- !u!1001 &466758464
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -239,7 +237,7 @@ GameObject:
type: 3}
m_PrefabInstance: {fileID: 1934281440}
m_PrefabAsset: {fileID: 0}
--- !u!114 &596496634
--- !u!114 &596496635
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
Expand All @@ -248,13 +246,11 @@ MonoBehaviour:
m_GameObject: {fileID: 596496632}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 14d7896b83927c247821fa13f452106f, type: 3}
m_Script: {fileID: 11500000, guid: d29a2d820d8afeb4a88421fa92f66c71, type: 3}
m_Name:
m_EditorClassIdentifier:
localSpace: 0
angles: {x: 0, y: 45, z: 20}
frequency: 0.5
fps: 60
anglesToAdd: {x: 0, y: 45, z: 20}
waitFrames: 3
--- !u!1 &891046727
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -567,7 +563,7 @@ GameObject:
type: 3}
m_PrefabInstance: {fileID: 1934281440}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1888081535
--- !u!114 &1888081536
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
Expand All @@ -576,13 +572,11 @@ MonoBehaviour:
m_GameObject: {fileID: 1888081533}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 14d7896b83927c247821fa13f452106f, type: 3}
m_Script: {fileID: 11500000, guid: d29a2d820d8afeb4a88421fa92f66c71, type: 3}
m_Name:
m_EditorClassIdentifier:
localSpace: 0
angles: {x: 45, y: 0, z: 0}
frequency: 1
fps: 60
anglesToAdd: {x: 45, y: 0, z: 0}
waitFrames: 3
--- !u!1001 &1934281440
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down
32 changes: 32 additions & 0 deletions com.unity.testing.hdrp/Scripts/AddAngles.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AddAngles : MonoBehaviour
{

[SerializeField] Vector3 anglesToAdd = new Vector3(0f, 0f, 0f);
[SerializeField] int waitFrames = 0;

Vector3 startAngles = Vector3.zero;
int localFrameCount = 0;

// Use this for initialization
void Start()
{
startAngles = transform.eulerAngles;
}

// Update is called once per frame
void Update()
{

if(localFrameCount == waitFrames){
transform.eulerAngles = startAngles + anglesToAdd;
Destroy(this);
}

localFrameCount++;

}
}
11 changes: 11 additions & 0 deletions com.unity.testing.hdrp/Scripts/AddAngles.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.