Skip to content

Commit ae6c121

Browse files
author
Jiang Yin
committed
修改一些变量名
1 parent f4b48cd commit ae6c121

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Scripts/Editor/Inspector/ResourceComponentInspector.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public override void OnInspectorGUI()
7676
}
7777
}
7878

79-
m_ReadWritePathType.enumValueIndex = (int)(ReadWritePathType)EditorGUILayout.EnumPopup("Read Write Path Type", t.ReadWritePathType);
79+
m_ReadWritePathType.enumValueIndex = (int)(ReadWritePathType)EditorGUILayout.EnumPopup("Read-Write Path Type", t.ReadWritePathType);
8080
}
8181
EditorGUI.EndDisabledGroup();
8282

@@ -227,7 +227,7 @@ public override void OnInspectorGUI()
227227
}
228228
}
229229

230-
int generateReadWriteVersionListLength = EditorGUILayout.DelayedIntField("Generate Read Write Version List Length", m_GenerateReadWriteVersionListLength.intValue);
230+
int generateReadWriteVersionListLength = EditorGUILayout.DelayedIntField("Generate Read-Write Version List Length", m_GenerateReadWriteVersionListLength.intValue);
231231
if (generateReadWriteVersionListLength != m_GenerateReadWriteVersionListLength.intValue)
232232
{
233233
if (EditorApplication.isPlaying)
@@ -269,8 +269,8 @@ public override void OnInspectorGUI()
269269
if (EditorApplication.isPlaying && IsPrefabInHierarchy(t.gameObject))
270270
{
271271
EditorGUILayout.LabelField("Unload Unused Assets", Utility.Text.Format("{0} / {1}", t.LastUnloadUnusedAssetsOperationElapseSeconds.ToString("F2"), t.MaxUnloadUnusedAssetsInterval.ToString("F2")));
272-
EditorGUILayout.LabelField("Read Only Path", t.ReadOnlyPath.ToString());
273-
EditorGUILayout.LabelField("Read Write Path", t.ReadWritePath.ToString());
272+
EditorGUILayout.LabelField("Read-Only Path", t.ReadOnlyPath.ToString());
273+
EditorGUILayout.LabelField("Read-Write Path", t.ReadWritePath.ToString());
274274
EditorGUILayout.LabelField("Current Variant", t.CurrentVariant ?? "<Unknwon>");
275275
EditorGUILayout.LabelField("Applicable Game Version", isEditorResourceMode ? "N/A" : t.ApplicableGameVersion ?? "<Unknwon>");
276276
EditorGUILayout.LabelField("Internal Resource Version", isEditorResourceMode ? "N/A" : t.InternalResourceVersion.ToString());

Scripts/Editor/ResourceBuilder/ResourceBuilderController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ private bool BuildResources(Platform platform, AssetBundleBuild[] assetBundleBui
969969
if (OutputPackedSelected)
970970
{
971971
ProcessReadOnlyVersionList(outputPackedPath, platform);
972-
m_BuildReport.LogInfo("Process read only version list for '{0}' complete.", platformName);
972+
m_BuildReport.LogInfo("Process read-only version list for '{0}' complete.", platformName);
973973
}
974974

975975
if (m_BuildEventHandler != null)
@@ -1179,7 +1179,7 @@ private void ProcessReadOnlyVersionList(string outputPackedPath, Platform platfo
11791179
{
11801180
if (!serializer.Serialize(fileStream, versionList))
11811181
{
1182-
throw new GameFrameworkException("Serialize read only version list failure.");
1182+
throw new GameFrameworkException("Serialize read-only version list failure.");
11831183
}
11841184
}
11851185
}

Scripts/Runtime/Resource/EditorResourceComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ public void SetReadOnlyPath(string readOnlyPath)
699699
{
700700
if (string.IsNullOrEmpty(readOnlyPath))
701701
{
702-
Log.Error("Readonly path is invalid.");
702+
Log.Error("Read-only path is invalid.");
703703
return;
704704
}
705705

0 commit comments

Comments
 (0)