Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ease-ph
DeepLanguageUnderstanding
Physics Simulator
Commits
c29a124b
Verified
Commit
c29a124b
authored
Mar 11, 2020
by
Sebastian Höffner
Browse files
Making SelectCameraHandler and SceneControllerEditor more resilient.
parent
c0f8ab5c
Changes
2
Show whitespace changes
Inline
Side-by-side
Assets/DLU/Scripts/Editor/SceneControllerEditor.cs
View file @
c29a124b
...
...
@@ -15,10 +15,7 @@ public class SceneControllerEditor : Editor
public
override
void
OnInspectorGUI
()
{
SceneController
sc
=
(
SceneController
)
target
;
if
(
GUILayout
.
Button
(
"Refresh list of semantic labels"
))
{
JSONHandler
.
instance
.
RefreshSemanticLabels
();
}
EditorGUILayout
.
Space
();
base
.
DrawDefaultInspector
();
...
...
Assets/DLU/Scripts/SelectCameraHandler.cs
View file @
c29a124b
...
...
@@ -7,10 +7,9 @@ public class SelectCameraHandler : MonoBehaviour, IPointerClickHandler
private
Transform
mainCamera
;
public
Transform
thisCamera
;
void
Start
()
{
mainCamera
=
G
ame
Object
.
Find
(
$"Main Camera"
)
.
transform
;
mainCamera
=
C
ame
ra
.
main
.
transform
;
thisCamera
=
GameObject
.
Find
(
$"Cameras/
{
name
}
"
).
transform
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment