Compare commits
No commits in common. "main" and "1.0.0" have entirely different histories.
13 changed files with 34 additions and 248 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEditor;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
|
|
||||||
namespace Module.ProjectValidator.Editor
|
namespace Module.ProjectValidator.Editor
|
||||||
{
|
{
|
||||||
internal sealed class Report
|
internal sealed class Report
|
||||||
|
|
@ -64,7 +64,7 @@ namespace Module.ProjectValidator.Editor
|
||||||
|
|
||||||
public bool TryGetSeverityFor(string guid, out MappingEntry mapping)
|
public bool TryGetSeverityFor(string guid, out MappingEntry mapping)
|
||||||
{
|
{
|
||||||
if (GUID.TryParse(guid, out var assetGuid) && _assetToSeverityMapping.TryGetValue(assetGuid, out mapping))
|
if (UnityEngine.GUID.TryParse(guid, out var assetGuid) && _assetToSeverityMapping.TryGetValue(assetGuid, out mapping))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
mapping = new MappingEntry();
|
mapping = new MappingEntry();
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ namespace Module.ProjectValidator.Editor
|
||||||
internal sealed class ProjectValidatorSettings : ScriptableObject
|
internal sealed class ProjectValidatorSettings : ScriptableObject
|
||||||
{
|
{
|
||||||
public List<string> assemblies = new();
|
public List<string> assemblies = new();
|
||||||
[NonReorderable]
|
|
||||||
public List<ValidatorEnabled> validators = new();
|
public List<ValidatorEnabled> validators = new();
|
||||||
|
|
||||||
public const string MenuPath = "Project/Project Validator";
|
public const string MenuPath = "Project/Project Validator";
|
||||||
|
|
@ -75,17 +74,13 @@ namespace Module.ProjectValidator.Editor
|
||||||
|
|
||||||
for (var i = 0; i < settings.validators.Count; i++)
|
for (var i = 0; i < settings.validators.Count; i++)
|
||||||
{
|
{
|
||||||
temp.Add(settings.validators[i].assemblyQualifiedName);
|
temp.Add(settings.validators[i].type);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < list.Count; i++)
|
for (var i = 0; i < list.Count; i++)
|
||||||
{
|
{
|
||||||
if (temp.Contains(list[i]))
|
if (!temp.Contains(list[i]))
|
||||||
continue;
|
settings.validators.Add(new ValidatorEnabled(list[i], true));
|
||||||
|
|
||||||
var type = Type.GetType(list[i]);
|
|
||||||
var name = type != null ? type.Name : "Unknown Type";
|
|
||||||
settings.validators.Add(new ValidatorEnabled(name, list[i], true));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = temp.Count - 1; i >= 0; i--)
|
for (var i = temp.Count - 1; i >= 0; i--)
|
||||||
|
|
@ -102,21 +97,19 @@ namespace Module.ProjectValidator.Editor
|
||||||
for (var i = 0; i < types.Count; i++)
|
for (var i = 0; i < types.Count; i++)
|
||||||
{
|
{
|
||||||
if (!types[i].IsInterface && !types[i].IsAbstract)
|
if (!types[i].IsInterface && !types[i].IsAbstract)
|
||||||
typeNames.Add(types[i].AssemblyQualifiedName);
|
typeNames.Add(types[i].FullName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public sealed class ValidatorEnabled
|
public sealed class ValidatorEnabled
|
||||||
{
|
{
|
||||||
public string name;
|
public string type;
|
||||||
public string assemblyQualifiedName;
|
|
||||||
public bool enabled;
|
public bool enabled;
|
||||||
|
|
||||||
public ValidatorEnabled(string name, string assemblyQualifiedName, bool enabled)
|
public ValidatorEnabled(string type, bool enabled)
|
||||||
{
|
{
|
||||||
this.name = name;
|
this.type = type;
|
||||||
this.assemblyQualifiedName = assemblyQualifiedName;
|
|
||||||
this.enabled = enabled;
|
this.enabled = enabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ namespace Module.ProjectValidator.Editor
|
||||||
if (!settings.validators[i].enabled)
|
if (!settings.validators[i].enabled)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var type = Type.GetType(settings.validators[i].assemblyQualifiedName);
|
var type = Type.GetType(settings.validators[i].type);
|
||||||
|
|
||||||
if (type != null)
|
if (type != null)
|
||||||
enabled.Add(type);
|
enabled.Add(type);
|
||||||
|
|
@ -178,13 +178,13 @@ namespace Module.ProjectValidator.Editor
|
||||||
var rootObjects = new List<GameObject>();
|
var rootObjects = new List<GameObject>();
|
||||||
|
|
||||||
for (var i = 0; i < assets.Length; i++)
|
for (var i = 0; i < assets.Length; i++)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var assetPath = AssetDatabase.GetAssetPath(assets[i]);
|
var assetPath = AssetDatabase.GetAssetPath(assets[i]);
|
||||||
var scene = SceneManager.GetSceneByPath(assetPath);
|
var scene = SceneManager.GetSceneByPath(assetPath);
|
||||||
var isLoaded = scene.isLoaded;
|
var isLoaded = scene.isLoaded;
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (!isLoaded)
|
if (!isLoaded)
|
||||||
scene = EditorSceneManager.OpenScene(assetPath, OpenSceneMode.Additive);
|
scene = EditorSceneManager.OpenScene(assetPath, OpenSceneMode.Additive);
|
||||||
|
|
||||||
|
|
@ -194,16 +194,14 @@ namespace Module.ProjectValidator.Editor
|
||||||
{
|
{
|
||||||
ValidateGameObject(rootObjects[j], string.Empty, report, true);
|
ValidateGameObject(rootObjects[j], string.Empty, report, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isLoaded)
|
||||||
|
EditorSceneManager.CloseScene(scene, true);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Debug.LogException(e);
|
Debug.LogException(e);
|
||||||
}
|
}
|
||||||
finally
|
|
||||||
{
|
|
||||||
if (!isLoaded && scene.isLoaded)
|
|
||||||
EditorSceneManager.CloseScene(scene, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -424,17 +422,7 @@ namespace Module.ProjectValidator.Editor
|
||||||
var fieldPath = parentFieldPath;
|
var fieldPath = parentFieldPath;
|
||||||
ProjectValidatorUtility.AppendToFieldPath(e.FieldInfo, ref fieldPath);
|
ProjectValidatorUtility.AppendToFieldPath(e.FieldInfo, ref fieldPath);
|
||||||
|
|
||||||
if (value is Array arr)
|
if (value is IEnumerable<object> ie)
|
||||||
{
|
|
||||||
for (var j = 0; j < arr.Length; j++)
|
|
||||||
{
|
|
||||||
var eObj = arr.GetValue(j);
|
|
||||||
var fieldPathArrElement = fieldPath;
|
|
||||||
ProjectValidatorUtility.AppendToFieldPath(j, ref fieldPathArrElement);
|
|
||||||
Validate(assetGuid, relativePath, fieldPathArrElement, eObj, e.Entry, report);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (value is IEnumerable<object> ie)
|
|
||||||
{
|
{
|
||||||
var idx = 0;
|
var idx = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,20 +28,16 @@ namespace Module.ProjectValidator.Editor
|
||||||
|
|
||||||
var tagSearch = new ShaderTagId("RenderPipeline");
|
var tagSearch = new ShaderTagId("RenderPipeline");
|
||||||
var tagPipeline = new ShaderTagId(pipeline.renderPipelineShaderTag);
|
var tagPipeline = new ShaderTagId(pipeline.renderPipelineShaderTag);
|
||||||
var hasKeyword = false;
|
|
||||||
|
|
||||||
for (var i = 0; i < shader.passCount; i++)
|
for (var i = 0; i < shader.passCount; i++)
|
||||||
{
|
{
|
||||||
var tagPass = shader.FindPassTagValue(i, tagSearch);
|
var tagPass = shader.FindPassTagValue(i, tagSearch);
|
||||||
|
|
||||||
if (tagPass != ShaderTagId.none)
|
|
||||||
hasKeyword = true;
|
|
||||||
|
|
||||||
if (tagPass == tagPipeline)
|
if (tagPass == tagPipeline)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !hasKeyword;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -16,12 +16,9 @@ namespace Module.ProjectValidator.Editor
|
||||||
for (var i = 0; i < count; i++)
|
for (var i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
var propertyType = obj.shader.GetPropertyType(i);
|
var propertyType = obj.shader.GetPropertyType(i);
|
||||||
var propertyFlags = obj.shader.GetPropertyFlags(i);
|
|
||||||
|
|
||||||
if (propertyType != ShaderPropertyType.Texture)
|
if (propertyType != ShaderPropertyType.Texture)
|
||||||
continue;
|
continue;
|
||||||
if ((propertyFlags & (ShaderPropertyFlags.PerRendererData | ShaderPropertyFlags.HideInInspector | ShaderPropertyFlags.NonModifiableTextureData)) != 0)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
var propertyName = obj.shader.GetPropertyName(i);
|
var propertyName = obj.shader.GetPropertyName(i);
|
||||||
var propertyValue = obj.GetTexture(propertyName);
|
var propertyValue = obj.GetTexture(propertyName);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Reflection;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Pool;
|
using UnityEngine.Pool;
|
||||||
|
|
||||||
|
|
@ -30,7 +28,7 @@ namespace Module.ProjectValidator.Editor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (count > 1 && IsMultipleComponentsAllowed(type))
|
if (count > 1)
|
||||||
results.Add(ValidatorResult.Create(EValidatorSeverity.Warning, $"GameObject has duplicate '{type.Name}' ({count}) components"));
|
results.Add(ValidatorResult.Create(EValidatorSeverity.Warning, $"GameObject has duplicate '{type.Name}' ({count}) components"));
|
||||||
|
|
||||||
type = t;
|
type = t;
|
||||||
|
|
@ -38,13 +36,8 @@ namespace Module.ProjectValidator.Editor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count > 1 && IsMultipleComponentsAllowed(type))
|
if (count > 1)
|
||||||
results.Add(ValidatorResult.Create(EValidatorSeverity.Warning, $"GameObject has duplicate '{type.Name}' ({count}) components"));
|
results.Add(ValidatorResult.Create(EValidatorSeverity.Warning, $"GameObject has duplicate '{type.Name}' ({count}) components"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool IsMultipleComponentsAllowed(Type type)
|
|
||||||
{
|
|
||||||
return type.GetCustomAttribute<DisallowMultipleComponent>(true) == null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -8,12 +8,6 @@ namespace Module.ProjectValidator.Editor
|
||||||
{
|
{
|
||||||
internal sealed class EditorProjectValidatorWindow : EditorWindow
|
internal sealed class EditorProjectValidatorWindow : EditorWindow
|
||||||
{
|
{
|
||||||
private VisualElement _groupWarnings;
|
|
||||||
private Label _labelWarnings;
|
|
||||||
|
|
||||||
private VisualElement _groupErrors;
|
|
||||||
private Label _labelErrors;
|
|
||||||
|
|
||||||
private MultiColumnTreeView _treeView;
|
private MultiColumnTreeView _treeView;
|
||||||
private string _searchFilter;
|
private string _searchFilter;
|
||||||
|
|
||||||
|
|
@ -27,15 +21,6 @@ namespace Module.ProjectValidator.Editor
|
||||||
root.styleSheets.Add(EditorAssetUtility.LoadFirstAsset<StyleSheet>("StyleSheetEditorProjectValidatorWindow"));
|
root.styleSheets.Add(EditorAssetUtility.LoadFirstAsset<StyleSheet>("StyleSheetEditorProjectValidatorWindow"));
|
||||||
root.Add(asset.Instantiate());
|
root.Add(asset.Instantiate());
|
||||||
|
|
||||||
_groupWarnings = root.Q<VisualElement>("status-warnings");
|
|
||||||
_labelWarnings = _groupWarnings.Q<Label>("label-warnings");
|
|
||||||
|
|
||||||
_groupErrors = root.Q<VisualElement>("status-errors");
|
|
||||||
_labelErrors = _groupErrors.Q<Label>("label-errors");
|
|
||||||
|
|
||||||
_groupWarnings.style.display = DisplayStyle.None;
|
|
||||||
_groupErrors.style.display = DisplayStyle.None;
|
|
||||||
|
|
||||||
root.Q<ToolbarButton>("button-run").clicked += OnToolbarButtonRunClicked;
|
root.Q<ToolbarButton>("button-run").clicked += OnToolbarButtonRunClicked;
|
||||||
root.Q<ToolbarButton>("button-clear").clicked += OnToolbarButtonClearClicked;
|
root.Q<ToolbarButton>("button-clear").clicked += OnToolbarButtonClearClicked;
|
||||||
root.Q<ToolbarSearchField>().RegisterValueChangedCallback(OnToolbarSearchFieldChanged);
|
root.Q<ToolbarSearchField>().RegisterValueChangedCallback(OnToolbarSearchFieldChanged);
|
||||||
|
|
@ -76,26 +61,11 @@ namespace Module.ProjectValidator.Editor
|
||||||
|
|
||||||
_list.Clear();
|
_list.Clear();
|
||||||
|
|
||||||
var entries = Report.Active.Entries;
|
for (var i = 0; i < Report.Active.Entries.Count; i++)
|
||||||
var warningCount = 0;
|
|
||||||
var errorCount = 0;
|
|
||||||
|
|
||||||
for (var i = 0; i < entries.Count; i++)
|
|
||||||
{
|
{
|
||||||
_list.Add(new TreeViewItemData<Report.Entry>(i, entries[i]));
|
_list.Add(new TreeViewItemData<Report.Entry>(i, Report.Active.Entries[i]));
|
||||||
|
|
||||||
if (entries[i].Severity == EValidatorSeverity.Warning)
|
|
||||||
warningCount++;
|
|
||||||
if (entries[i].Severity == EValidatorSeverity.Error)
|
|
||||||
errorCount++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_groupWarnings.style.display = warningCount > 0 ? DisplayStyle.Flex : DisplayStyle.None;
|
|
||||||
_labelWarnings.text = warningCount.ToString();
|
|
||||||
|
|
||||||
_groupErrors.style.display = errorCount > 0 ? DisplayStyle.Flex : DisplayStyle.None;
|
|
||||||
_labelErrors.text = errorCount.ToString();
|
|
||||||
|
|
||||||
Filter();
|
Filter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -154,8 +124,6 @@ namespace Module.ProjectValidator.Editor
|
||||||
|
|
||||||
private void OnToolbarButtonClearClicked()
|
private void OnToolbarButtonClearClicked()
|
||||||
{
|
{
|
||||||
_groupWarnings.style.display = DisplayStyle.None;
|
|
||||||
_groupErrors.style.display = DisplayStyle.None;
|
|
||||||
ValidatorRunner.Clear();
|
ValidatorRunner.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ namespace Module.ProjectValidator.Editor
|
||||||
{
|
{
|
||||||
public override VisualElement CreatePropertyGUI(SerializedProperty property)
|
public override VisualElement CreatePropertyGUI(SerializedProperty property)
|
||||||
{
|
{
|
||||||
var spType = property.FindPropertyRelative(nameof(ProjectValidatorSettings.ValidatorEnabled.name));
|
var spType = property.FindPropertyRelative(nameof(ProjectValidatorSettings.ValidatorEnabled.type));
|
||||||
var spEnabled = property.FindPropertyRelative(nameof(ProjectValidatorSettings.ValidatorEnabled.enabled));
|
var spEnabled = property.FindPropertyRelative(nameof(ProjectValidatorSettings.ValidatorEnabled.enabled));
|
||||||
|
|
||||||
var root = new VisualElement { style = { flexDirection = FlexDirection.Row } };
|
var root = new VisualElement { style = { flexDirection = FlexDirection.Row } };
|
||||||
var veType = new PropertyField(spType, string.Empty) { style = { flexGrow = 1f }, enabledSelf = false };
|
var veType = new PropertyField(spType, string.Empty) { style = { flexGrow = 1f } };
|
||||||
var veEnabled = new PropertyField(spEnabled, string.Empty);
|
var veEnabled = new PropertyField(spEnabled, string.Empty);
|
||||||
root.Add(veEnabled);
|
root.Add(veEnabled);
|
||||||
root.Add(veType);
|
root.Add(veType);
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,8 @@
|
||||||
-unity-font-style: bold;
|
-unity-font-style: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.toolbar-button-settings {
|
.toolbar-button-settings {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
min-width: 24px;
|
min-width: 24px;
|
||||||
|
|
@ -28,27 +30,3 @@
|
||||||
-unity-background-scale-mode: scale-to-fit;
|
-unity-background-scale-mode: scale-to-fit;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.warning-icon {
|
|
||||||
background-image: url("project://database/Packages/com.module.project-validator/Editor/Icons/editor_project_validator_warning.png?fileID=2800000&guid=5dce0f250980ffb459470fac33dfab59&type=3#editor_project_validator_warning");
|
|
||||||
width: 16px;
|
|
||||||
min-width: 16px;
|
|
||||||
max-width: 16px;
|
|
||||||
max-height: 16px;
|
|
||||||
min-height: 16px;
|
|
||||||
height: 16px;
|
|
||||||
-unity-background-scale-mode: scale-to-fit;
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.error-icon {
|
|
||||||
background-image: url("project://database/Packages/com.module.project-validator/Editor/Icons/editor_project_validator_error.png?fileID=2800000&guid=7b6c61a2cf824b74c87cb49759531c79&type=3#editor_project_validator_error");
|
|
||||||
width: 16px;
|
|
||||||
min-width: 16px;
|
|
||||||
max-width: 16px;
|
|
||||||
max-height: 16px;
|
|
||||||
min-height: 16px;
|
|
||||||
height: 16px;
|
|
||||||
-unity-background-scale-mode: scale-to-fit;
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -2,16 +2,7 @@
|
||||||
<uie:Toolbar name="toolbar">
|
<uie:Toolbar name="toolbar">
|
||||||
<uie:ToolbarButton text="Run" name="button-run" style="margin-left: 2px;"/>
|
<uie:ToolbarButton text="Run" name="button-run" style="margin-left: 2px;"/>
|
||||||
<uie:ToolbarButton text="Clear" name="button-clear"/>
|
<uie:ToolbarButton text="Clear" name="button-clear"/>
|
||||||
<uie:ToolbarSpacer name="spacing" style="flex-grow: 1;"/>
|
<uie:ToolbarSpacer style="flex-grow: 1;"/>
|
||||||
<ui:VisualElement name="status-errors" style="flex-grow: 0; flex-direction: row; align-self: center; margin-left: 4px;">
|
|
||||||
<ui:Label text="9999" name="label-errors" double-click-selects-word="false" triple-click-selects-line="false" display-tooltip-when-elided="false" style="flex-grow: 1; -unity-text-align: middle-center;"/>
|
|
||||||
<ui:VisualElement name="icon" class="error-icon" style="flex-grow: 1;"/>
|
|
||||||
</ui:VisualElement>
|
|
||||||
<ui:VisualElement name="status-warnings" style="flex-grow: 0; flex-direction: row; align-self: center; margin-right: 4px;">
|
|
||||||
<ui:Label text="9999" name="label-warnings" double-click-selects-word="false" triple-click-selects-line="false" display-tooltip-when-elided="false" style="flex-grow: 1; -unity-text-align: middle-center;"/>
|
|
||||||
<ui:VisualElement name="icon" class="warning-icon" style="flex-grow: 1;"/>
|
|
||||||
</ui:VisualElement>
|
|
||||||
<uie:ToolbarSpacer name="spacing" style="flex-grow: 1;"/>
|
|
||||||
<uie:ToolbarSearchField name="search-field"/>
|
<uie:ToolbarSearchField name="search-field"/>
|
||||||
<uie:ToolbarButton text="" name="button-settings" class="toolbar-button-settings"/>
|
<uie:ToolbarButton text="" name="button-settings" class="toolbar-button-settings"/>
|
||||||
</uie:Toolbar>
|
</uie:Toolbar>
|
||||||
|
|
@ -26,5 +17,4 @@
|
||||||
</ui:Columns>
|
</ui:Columns>
|
||||||
<ui:SortColumnDescriptions/>
|
<ui:SortColumnDescriptions/>
|
||||||
</ui:MultiColumnTreeView>
|
</ui:MultiColumnTreeView>
|
||||||
<ui:Image/>
|
|
||||||
</ui:UXML>
|
</ui:UXML>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "com.module.project-validator",
|
"name": "com.module.project-validator",
|
||||||
"version": "1.0.3",
|
"version": "1.0.0",
|
||||||
"displayName": "Module.ProjectValidator",
|
"displayName": "Module.ProjectValidator",
|
||||||
"description": "",
|
"description": "",
|
||||||
"unity": "6000.3",
|
"unity": "6000.3",
|
||||||
|
|
|
||||||
|
|
@ -1,117 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 094f9567dcf756b468ea41cd471b65d7
|
|
||||||
TextureImporter:
|
|
||||||
internalIDToNameTable: []
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 13
|
|
||||||
mipmaps:
|
|
||||||
mipMapMode: 0
|
|
||||||
enableMipMap: 1
|
|
||||||
sRGBTexture: 1
|
|
||||||
linearTexture: 0
|
|
||||||
fadeOut: 0
|
|
||||||
borderMipMap: 0
|
|
||||||
mipMapsPreserveCoverage: 0
|
|
||||||
alphaTestReferenceValue: 0.5
|
|
||||||
mipMapFadeDistanceStart: 1
|
|
||||||
mipMapFadeDistanceEnd: 3
|
|
||||||
bumpmap:
|
|
||||||
convertToNormalMap: 0
|
|
||||||
externalNormalMap: 0
|
|
||||||
heightScale: 0.25
|
|
||||||
normalMapFilter: 0
|
|
||||||
flipGreenChannel: 0
|
|
||||||
isReadable: 0
|
|
||||||
streamingMipmaps: 0
|
|
||||||
streamingMipmapsPriority: 0
|
|
||||||
vTOnly: 0
|
|
||||||
ignoreMipmapLimit: 0
|
|
||||||
grayScaleToAlpha: 0
|
|
||||||
generateCubemap: 6
|
|
||||||
cubemapConvolution: 0
|
|
||||||
seamlessCubemap: 0
|
|
||||||
textureFormat: 1
|
|
||||||
maxTextureSize: 2048
|
|
||||||
textureSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
filterMode: 1
|
|
||||||
aniso: 1
|
|
||||||
mipBias: 0
|
|
||||||
wrapU: 0
|
|
||||||
wrapV: 0
|
|
||||||
wrapW: 0
|
|
||||||
nPOTScale: 1
|
|
||||||
lightmap: 0
|
|
||||||
compressionQuality: 50
|
|
||||||
spriteMode: 0
|
|
||||||
spriteExtrude: 1
|
|
||||||
spriteMeshType: 1
|
|
||||||
alignment: 0
|
|
||||||
spritePivot: {x: 0.5, y: 0.5}
|
|
||||||
spritePixelsToUnits: 100
|
|
||||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
spriteGenerateFallbackPhysicsShape: 1
|
|
||||||
alphaUsage: 1
|
|
||||||
alphaIsTransparency: 0
|
|
||||||
spriteTessellationDetail: -1
|
|
||||||
textureType: 0
|
|
||||||
textureShape: 1
|
|
||||||
singleChannelComponent: 0
|
|
||||||
flipbookRows: 1
|
|
||||||
flipbookColumns: 1
|
|
||||||
maxTextureSizeSet: 0
|
|
||||||
compressionQualitySet: 0
|
|
||||||
textureFormatSet: 0
|
|
||||||
ignorePngGamma: 0
|
|
||||||
applyGammaDecoding: 0
|
|
||||||
swizzle: 50462976
|
|
||||||
cookieLightType: 0
|
|
||||||
platformSettings:
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID:
|
|
||||||
internalID: 0
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable: {}
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |
Loading…
Add table
Add a link
Reference in a new issue