Skip to content

Commit 03fc644

Browse files
committed
Merge branch 'main' into feature/convert-array
2 parents 469e5b3 + 32b2435 commit 03fc644

File tree

465 files changed

+44454
-8650
lines changed

Some content is hidden

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

465 files changed

+44454
-8650
lines changed

.github/workflows/package-deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Publish Airship Package
22
run-name: Publish Airship Package env:${{ inputs.environment || 'platform-staging' }}
33

44
on:
5-
push:
6-
branches:
7-
- main
5+
# push:
6+
# branches:
7+
# - main
88
workflow_dispatch:
99
inputs:
1010
environment:

.github/workflows/trigger-deployments.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Outbound Trigger Deploy (Fast)
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
workflow_dispatch:
8-
inputs:
9-
environment:
10-
type: environment
11-
default: platform-staging
12-
required: true
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
# workflow_dispatch:
8+
# inputs:
9+
# environment:
10+
# type: environment
11+
# default: platform-staging
12+
# required: true
1313

1414
jobs:
1515
trigger:

AuthenticationForUnity/Runtime/OAuth2/AuthenticationSession.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,10 @@ public async Task<AccessTokenResponse> AuthenticateAsync(CancellationToken cance
5050
try
5151
{
5252
// 1. Create authorization request URL.
53-
Debug.Log("Making authorization request...");
54-
5553
var redirectUrl = _client.configuration.redirectUri;
5654
var authorizationUrl = _client.GetAuthorizationUrl();
5755

5856
// 2. Get authorization code grant using login form in the browser.
59-
Debug.Log("Getting authorization grant using browser login...");
60-
61-
6257
using var loginCancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(
6358
cancellationToken, timeoutCancellationTokenSource.Token);
6459

@@ -67,11 +62,6 @@ public async Task<AccessTokenResponse> AuthenticateAsync(CancellationToken cance
6762
if (browserResult.status == BrowserStatus.Success)
6863
{
6964
// 3. Exchange authorization code for access and refresh tokens.
70-
Debug.Log("Exchanging authorization code for access and refresh tokens...");
71-
72-
#if UNITY_EDITOR
73-
Debug.Log($"Redirect URL: {browserResult.redirectUrl}");
74-
#endif
7565
return await _client.ExchangeCodeForAccessTokenAsync(browserResult.redirectUrl, cancellationToken);
7666
}
7767

AuthenticationForUnity/Runtime/OAuth2/AuthorizationCodeFlow.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,6 @@ private async Task<AccessTokenResponse> GetAccessTokenInternalAsync(FormUrlEncod
246246
tokenRequest.Headers.Authorization = new AuthenticationHeaderValue("Basic", base64AuthString);
247247
tokenRequest.Content = content;
248248

249-
#if UNITY_EDITOR
250-
Debug.Log($"{tokenRequest}");
251-
Debug.Log($"{await tokenRequest.Content.ReadAsStringAsync()}");
252-
#endif
253-
254249
var response = await httpClient.SendAsync(tokenRequest, cancellationToken);
255250
if (response.IsSuccessStatusCode)
256251
{

Editor/Accessories/AccessoryBuilderEditor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public override void OnInspectorGUI() {
2424
if (GUILayout.Button("Equip Referenced Outfit")) {
2525
if(builder.currentOutfit != null){
2626
Debug.Log("Equipping outfit " + builder.currentOutfit.name);
27-
builder.EquipAccessoryOutfit(builder.currentOutfit, true);
27+
builder.EquipAccessoryOutfit(builder.currentOutfit, true, true);
2828
}
2929
}
3030

@@ -61,15 +61,15 @@ public override void OnInspectorGUI() {
6161
}
6262
}
6363

64-
private async Task DownloadUserOutfit(AccessoryBuilder builder){
64+
private async Task DownloadUserOutfit(AccessoryBuilder builder) {
6565
Debug.Log("Starting download");
6666
downloading = true;
6767
await builder.AddOutfitFromUserId(builder.currentUserId);
6868
Debug.Log("Done with download");
6969
downloading = false;
7070
}
7171

72-
private async Task DownloadUsernameOutfit(AccessoryBuilder builder){
72+
private async Task DownloadUsernameOutfit(AccessoryBuilder builder) {
7373
Debug.Log("Starting download");
7474
downloading = true;
7575
await builder.EquipOutfitFromUsername(builder.currentUserName);

Editor/Accessories/AccessoryCollectionEditorTools.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ private static void FillAvatarCollection() {
1616
string folderPath = Application.dataPath + "/AirshipPackages/@Easy/Core/Prefabs/Accessories/AvatarItems";
1717
string allItemsPath
1818
= "Assets/AirshipPackages/@Easy/Core/Prefabs/Accessories/AvatarItems/EntireAvatarCollection.asset";
19-
//
19+
2020
AvatarAccessoryCollection allAccessories = AssetDatabase.LoadAssetAtPath<AvatarAccessoryCollection>(allItemsPath);
2121

2222
//Compile accessories
2323
List<AccessoryComponent> accs = new List<AccessoryComponent>();
2424
int count = 0;
2525
GetAccessoriesInFolder(ref count, folderPath, "prefab", (relativePath)=>{
2626
var go = AssetDatabase.LoadAssetAtPath<GameObject>(relativePath);
27-
var acc = go.GetComponent<AccessoryComponent>();
28-
if (acc != null) {
29-
//Debug.Log("Found Accessory: " + relativePath);
30-
accs.Add(acc);
27+
if(go != null){
28+
var acc = go.GetComponent<AccessoryComponent>();
29+
if (acc != null && acc.enabled) {
30+
//Debug.Log("Found Accessory: " + relativePath);
31+
accs.Add(acc);
32+
}
3133
}
3234
});
3335
allAccessories.accessories = accs.ToArray();
@@ -140,7 +142,7 @@ private static bool ValidateCreateAccFromMesh(){
140142
[MenuItem("Assets/Create/Airship/Accessories/Create Outfit Accessories from Mesh")]
141143
static void CreateAccFromMesh(){
142144
processedPaths.Clear();
143-
defaultMat = AssetDatabase.LoadAssetAtPath<Material>("Assets/AirshipPackages/@Easy/CoreMaterials//MaterialLibrary/Organic/Clay.mat");
145+
defaultMat = AssetDatabase.LoadAssetAtPath<Material>("Assets/AirshipPackages/@Easy/CoreMaterials/MaterialLibrary/Clay.mat");
144146
var objects = Selection.GetFiltered<GameObject>(AssetModeMask);
145147
foreach(var obj in objects){
146148
Debug.Log("Unpacking: " + obj.name);

0 commit comments

Comments
 (0)