Skip to content

Commit 0ea2e64

Browse files
committed
Using Editor.XYZ breaks the default template
The default URP template/starter project has a class (ReadmeEditor.cs) which inherits from the type "Editor." If we use Editor.XYZ as the namespace, that class errors out stating it isn't sure if "Editor" is a type or a namespace (probably since Editor is now a valid namespace)
1 parent e2b1222 commit 0ea2e64

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

com.unity.perception/Editor/Randomization/PropertyDrawers/AssetSourceDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Editor.Randomization.VisualElements.AssetSource;
1+
using UnityEditor.Perception.Randomization.VisualElements.AssetSource;
22
using UnityEngine;
33
using UnityEngine.Perception.Randomization;
44
using UnityEngine.UIElements;

com.unity.perception/Editor/Randomization/VisualElements/AssetSource/AssetListElement.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
using System;
22
using System.Collections;
3-
using UnityEditor;
4-
using UnityEditor.Perception.Randomization;
53
using UnityEngine;
64
using UnityEngine.UIElements;
75

8-
namespace Editor.Randomization.VisualElements.AssetSource
6+
namespace UnityEditor.Perception.Randomization.VisualElements.AssetSource
97
{
108
class AssetListElement : VisualElement
119
{

com.unity.perception/Editor/Randomization/VisualElements/AssetSource/AssetListItemElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using UnityEditor.UIElements;
55
using UnityEngine.UIElements;
66

7-
namespace Editor.Randomization.VisualElements.AssetSource
7+
namespace UnityEditor.Perception.Randomization.VisualElements.AssetSource
88
{
99
class AssetListItemElement : VisualElement
1010
{

com.unity.perception/Editor/Randomization/VisualElements/AssetSource/AssetSourceElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using UnityEngine.Perception.Randomization;
1010
using UnityEngine.UIElements;
1111

12-
namespace Editor.Randomization.VisualElements.AssetSource
12+
namespace UnityEditor.Perception.Randomization.VisualElements.AssetSource
1313
{
1414
class AssetSourceElement : VisualElement
1515
{

0 commit comments

Comments
 (0)