Added GameObject Validators
This commit is contained in:
parent
c8a6815316
commit
269789b36f
15 changed files with 160 additions and 13 deletions
|
|
@ -38,14 +38,14 @@ namespace Module.ProjectValidator.Editor
|
|||
return window;
|
||||
}
|
||||
|
||||
internal static string GetAttributeShortName(Attribute attribute)
|
||||
internal static string GetGameObjectValidatorName(IGameObjectValidator validator)
|
||||
{
|
||||
var str = attribute.GetType().Name;
|
||||
str = str.Replace("Attribute", string.Empty);
|
||||
var str = validator.GetType().Name;
|
||||
str = str.Replace("GameObjectValidator", string.Empty);
|
||||
str = ObjectNames.NicifyVariableName(str);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
internal static string GetComponentValidatorShortName(object obj)
|
||||
{
|
||||
var str = obj.GetType().Name;
|
||||
|
|
@ -53,7 +53,15 @@ namespace Module.ProjectValidator.Editor
|
|||
str = ObjectNames.NicifyVariableName(str);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
internal static string GetAttributeShortName(Attribute attribute)
|
||||
{
|
||||
var str = attribute.GetType().Name;
|
||||
str = str.Replace("Attribute", string.Empty);
|
||||
str = ObjectNames.NicifyVariableName(str);
|
||||
return str;
|
||||
}
|
||||
|
||||
internal static void AppendToScenePath(GameObject gameObject, ref string scenePath)
|
||||
{
|
||||
scenePath = string.IsNullOrEmpty(scenePath) ? gameObject.name : $"{scenePath}/{gameObject.name}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue