feat: GitHub integration and URL management
All checks were successful
Create Unity Package / package (push) Successful in 8s

This commit is contained in:
2025-11-25 18:38:00 +02:00
parent ac7c0352e5
commit cf5f71e34f
13 changed files with 1273 additions and 615 deletions

View File

@@ -20,7 +20,7 @@ namespace VRCBoard.Components
GetImageAtlasTexture(imageId, null, out Texture2D albedoTexture, out int albedoAtlasPosition, out int albedoAtlasSize, out string albedoType);
if (albedoType == null)
{
Debug.LogError("Failed to get image type for albedo image");
//Debug.LogError("Failed to get image type for albedo image");
return "";
}
string _mainType = albedoType;
@@ -30,26 +30,14 @@ namespace VRCBoard.Components
}
else if (_mainType == "global")
{
uploaderId = null;
uploaderId = "null";
}
else
{
DataDictionary ownerInfo = manager.GetSupporterDataFromPlayer(manager.InstanceOwner);
if (ownerInfo == null)
{
Debug.LogWarning("Failed to get owner info, user has likely not linked their account.");
return "";
}
bool ownerSuccess = ownerInfo.TryGetValue("id", out DataToken ownerToken);
if (!ownerSuccess || ownerToken.TokenType != TokenType.String)
{
Debug.LogWarning("Failed to get owner ID from owner info.");
return "";
}
uploaderId = ownerToken.String;
uploaderId = manager._VRCBoardIdFromName(manager.InstanceOwner);
}
Debug.Log("image uploader: " + uploaderId);
//Debug.Log("image uploader: " + uploaderId);
} else
{
uploaderId = uploaderIdOverride;