Skip to content

Commit 5df0d6d

Browse files
committed
Adding Welcome Page. Moved shaders
1 parent 766df43 commit 5df0d6d

File tree

147 files changed

+5871
-3726
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+5871
-3726
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ UMAProject/Assets/Assets
5353
UMAProject/Assets/Plugins
5454
UMAProject/Assets/Tarfmagougou.meta
5555
/UMAProject/Assets/Tarfmagougou
56+
*.docx
Binary file not shown.

UMAProject/Assets/UMA/Content/Core/HumanMale/Recipes/BaseRecipes/HumanMale Base Recipe.asset

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

UMAProject/Assets/UMA/Content/Core/HumanShared/Materials/Other/UMA_Hair_Aniso.asset

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ MonoBehaviour:
1313
m_Name: UMA_Hair_Aniso
1414
m_EditorClassIdentifier:
1515
translateSRP: 1
16+
AutoSetSRPMaterials: 1
1617
_material: {fileID: 2100000, guid: f4d3c2e2816d3dd4db44df0ff7085cae, type: 2}
17-
_secondPass: {fileID: 0}
18+
_secondPass: {fileID: -4288583467269203127, guid: f518b34f64e6ae24486b693967c5cd25,
19+
type: 3}
1820
srpMaterials:
1921
- SRP: 2
2022
material: {fileID: 2100000, guid: 836ba1c96b1a93a4c8e7ff58ffb68a11, type: 2}
@@ -28,17 +30,17 @@ MonoBehaviour:
2830
alternateKeywords:
2931
- _BaseMap
3032
- _BumpMap
31-
materialType: 1
33+
materialType: 8
3234
channels:
33-
- channelType: 0
35+
- channelType: 3
3436
textureFormat: 0
3537
materialPropertyName: _MainTex
3638
sourceTextureName:
3739
Compression: 0
3840
DownSample: 0
3941
ConvertRenderTexture: 0
4042
NonShaderTexture: 0
41-
- channelType: 1
43+
- channelType: 3
4244
textureFormat: 0
4345
materialPropertyName: _BumpMap
4446
sourceTextureName:
Binary file not shown.

UMAProject/Assets/UMA/Core/Editor/Extensions/DynamicCharacterSystem/DynamicCharacterAvatarEditor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,9 +1220,10 @@ void GenerateSingleUMA(bool rebuild = false)
12201220
return;
12211221
}
12221222

1223-
UMAGenerator ugb = UMAContext.Instance.gameObject.GetComponentInChildren<UMAGenerator>();
1223+
UMAGenerator ugb = UMAContext.Instance.gameObject.GetComponentInChildren<UMAGenerator>(true);
12241224
if (ugb == null)
12251225
{
1226+
Debug.Log("Cannot find generator!");
12261227
EditorUtility.DisplayDialog("Error", "Cannot find generator!", "OK");
12271228
}
12281229
else

UMAProject/Assets/UMA/Core/Editor/Scripts/AssetIndexerWindow.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,14 @@ private void SetupMenus()
204204
// ***********************************************************************************
205205
AddMenuItemWithCallback(FileMenu, "Rebuild From Project", () =>
206206
{
207-
UAI.SaveKeeps();
207+
UAI.RebuildLibrary();
208+
/*UAI.SaveKeeps();
208209
UAI.Clear();
209210
UAI.BuildStringTypes();
210211
UAI.AddEverything(false);
211212
UAI.RestoreKeeps();
212213
UAI.ForceSave();
213-
Resources.UnloadUnusedAssets();
214+
Resources.UnloadUnusedAssets(); */
214215
m_Initialized = false;
215216
Repaint();
216217
});
@@ -2285,13 +2286,13 @@ private void DragDropType(Rect dropArea)
22852286

22862287
void OnGUI()
22872288
{
2288-
if (EditorApplication.isCompiling)
2289+
if (EditorApplication.isCompiling || EditorApplication.isUpdating)
22892290
{
22902291
dots += ".";
22912292
if (dots.Length > 20)
22922293
dots = "";
22932294
GUILayout.Space(30);
2294-
EditorGUILayout.LabelField(" Compile in progress " + dots);
2295+
EditorGUILayout.LabelField(" Compile/update in progress " + dots);
22952296
System.Threading.Thread.Sleep(100);
22962297
Repaint();
22972298
return;

UMAProject/Assets/UMA/Core/Editor/Scripts/CharacterBaseEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ public bool OnGUI(ref bool _dnaDirty, ref bool _textureDirty, ref bool _meshDirt
16911691
changed = true;
16921692
}
16931693

1694-
int remapUV = EditorGUILayout.Popup("Remap UV to Main", _slotData.UVSet, new string[] { "None", "UV Set 1", "UV Set 2", "UV Set 3" });
1694+
int remapUV = EditorGUILayout.Popup("Remap UV to Main", _slotData.UVSet, new string[] { "None", "UV Set 2", "UV Set 3", "UV Set 4" });
16951695
if (remapUV != _slotData.UVSet)
16961696
{
16971697
_slotData.UVSet = remapUV;

UMAProject/Assets/UMA/Core/Editor/Scripts/GUIHelper.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using UnityEngine.Events;
55
using System.IO;
66
using System.Collections.Generic;
7+
using UnityEditor.AddressableAssets.Build.BuildPipelineTasks;
78

89
namespace UMA.Editors
910
{
@@ -130,6 +131,31 @@ public static void EndVerticalPadded()
130131
{
131132
GUIHelper.EndVerticalPadded(10);
132133
}
134+
public static Rect ShrinkRect(Rect rect, float inset, float xinset = -1)
135+
{
136+
if (xinset < 0)
137+
{
138+
xinset = inset;
139+
}
140+
return new Rect(rect.x + xinset, rect.y + inset, rect.width - xinset * 2, rect.height - inset * 2);
141+
}
142+
143+
public static void BeginInsetArea(Color backgroundColor, Rect rect, float inset, float vertpadding, float xinset = -1)
144+
{
145+
if (xinset < 0)
146+
{
147+
xinset = inset;
148+
}
149+
EditorGUI.DrawRect(ShrinkRect(rect, inset, xinset), backgroundColor);
150+
GUILayout.BeginArea(ShrinkRect(rect, inset*2, xinset));
151+
GUILayout.Space(vertpadding);
152+
}
153+
154+
155+
public static void EndInsetArea()
156+
{
157+
GUILayout.EndArea();
158+
}
133159

134160
public static void BeginVerticalPadded(float padding, Color backgroundColor, GUIStyle theStyle = null)
135161
{

0 commit comments

Comments
 (0)