Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS408-ConfigurableVirtualRealityRendering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
William MacDonald SE2014
CS408-ConfigurableVirtualRealityRendering
Commits
55e86bc5
Commit
55e86bc5
authored
5 years ago
by
WJohnM18
Browse files
Options
Downloads
Patches
Plain Diff
Add error message when creating preset with blank name
parent
518c79ca
No related branches found
Branches containing commit
No related tags found
1 merge request
!10
Evaluation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/RollABall/Assets/Scripts/RenderSettings/src/rendersettings/view/RenderPresetCreatorPanel.cs
+2
-6
2 additions, 6 deletions
...tings/src/rendersettings/view/RenderPresetCreatorPanel.cs
with
2 additions
and
6 deletions
src/RollABall/Assets/Scripts/RenderSettings/src/rendersettings/view/RenderPresetCreatorPanel.cs
+
2
−
6
View file @
55e86bc5
...
...
@@ -34,7 +34,8 @@ public class RenderPresetCreatorPanel: IRenderPresetCreatorPanel
presetName
=
""
;
}
catch
(
InvalidPresetNameException
e
)
{
DisplayErrorMessage
(
e
.
Message
);
EditorUtility
.
DisplayDialog
(
"Failed to create render preset"
,
e
.
Message
,
"Okay"
,
"Cancel"
);
}
}
...
...
@@ -45,9 +46,4 @@ public class RenderPresetCreatorPanel: IRenderPresetCreatorPanel
this
.
presetManager
=
presetManager
;
}
private
void
DisplayErrorMessage
(
string
message
)
{
EditorGUILayout
.
LabelField
(
message
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment