mirror of
https://git.aaro.dev/VRCBoard/vrcboard-udon.git
synced 2026-03-17 04:29:46 +00:00
feat: GitHub integration and URL management
All checks were successful
Create Unity Package / package (push) Successful in 8s
All checks were successful
Create Unity Package / package (push) Successful in 8s
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user