Skip to content

Commit

Permalink
Publish version 3.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
CI committed May 26, 2022
1 parent 75ebae6 commit f19db78
Show file tree
Hide file tree
Showing 42 changed files with 94 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"references": [
"VRC.SDK3A",
"VRC.SDKBase.Editor",
"VRC.SDKBase"
"VRC.SDKBase",
"VRC.Enums.Validation.Performance"
],
"includePlatforms": [
"Editor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using UnityEditor;
using UnityEditor.Animations;
using UnityEngine;
using VRC.Editor;
using VRC.SDKBase.Editor;
using VRC.SDK3.Avatars;
using VRC.SDK3.Avatars.Components;
Expand Down Expand Up @@ -320,7 +321,7 @@ bool ValidateNonBoolParam(string name)
// delete PipelineSaver(s) from the list of the Components we will destroy now
foreach (Component c in toRemoveSilently)
{
componentsToRemove.Remove(c);
componentsToRemove.Remove(c);
}

HashSet<string> componentsToRemoveNames = new HashSet<string>();
Expand Down Expand Up @@ -408,11 +409,11 @@ bool ValidateNonBoolParam(string name)
break;
case AvatarPerformanceCategory.MaterialCount:
show = GetAvatarSubSelectAction(avatar,
new[] { typeof(MeshRenderer), typeof(SkinnedMeshRenderer) });
new[] {typeof(MeshRenderer), typeof(SkinnedMeshRenderer)});
break;
case AvatarPerformanceCategory.MeshCount:
show = GetAvatarSubSelectAction(avatar,
new[] { typeof(MeshRenderer), typeof(SkinnedMeshRenderer) });
new[] {typeof(MeshRenderer), typeof(SkinnedMeshRenderer)});
break;
case AvatarPerformanceCategory.ParticleCollisionEnabled:
show = GetAvatarSubSelectAction(avatar, typeof(ParticleSystem));
Expand All @@ -437,7 +438,7 @@ bool ValidateNonBoolParam(string name)
break;
case AvatarPerformanceCategory.PolyCount:
show = GetAvatarSubSelectAction(avatar,
new[] { typeof(MeshRenderer), typeof(SkinnedMeshRenderer) });
new[] {typeof(MeshRenderer), typeof(SkinnedMeshRenderer)});
break;
case AvatarPerformanceCategory.SkinnedMeshCount:
show = GetAvatarSubSelectAction(avatar, typeof(SkinnedMeshRenderer));
Expand Down Expand Up @@ -504,9 +505,9 @@ public override void OnGUIAvatar(VRC_AvatarDescriptor avatar)
GUILayout.Label("Offline Testing", VRCSdkControlPanel.infoGuiStyle);
if (GUI.enabled)
{
GUILayout.Label(
"Before uploading your avatar you may build and test it in the VRChat client. Other users will not able to see the test avatar.",
VRCSdkControlPanel.infoGuiStyle);
GUILayout.Label(
"Before uploading your avatar you may build and test it in the VRChat client. Other users will not able to see the test avatar.",
VRCSdkControlPanel.infoGuiStyle);
}
else
{
Expand Down Expand Up @@ -542,7 +543,7 @@ public override void OnGUIAvatar(VRC_AvatarDescriptor avatar)

EditorGUILayout.Separator();

EditorGUILayout.BeginVertical(VRCSdkControlPanel.boxGuiStyle);
EditorGUILayout.BeginVertical(VRCSdkControlPanel.boxGuiStyle);
EditorGUILayout.BeginHorizontal();

EditorGUILayout.BeginVertical(GUILayout.Width(300));
Expand Down
Git LFS file not shown
Git LFS file not shown
6 changes: 3 additions & 3 deletions packages/com.vrchat.avatars/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "com.vrchat.avatars",
"displayName": "VRChat SDK - Avatars",
"version": "3.0.4",
"version": "3.0.5",
"unity": "2019.4",
"description": "Our powerful Avatars 3.0 System",
"gitDependencies": {
"com.vrchat.base": "https://github.com/vrchat/packages.git?path=/packages/com.vrchat.base#3.0.4"
"com.vrchat.base": "https://github.com/vrchat/packages.git?path=/packages/com.vrchat.base#3.0.5"
},
"author": {
"name": "VRChat",
Expand All @@ -18,7 +18,7 @@
"legacyFiles": {
"ProjectVersion.txt": ""
},
"url": "https://github.com/vrchat/packages.git?path=/packages/com.vrchat.avatars#3.0.4",
"url": "https://github.com/vrchat/packages.git?path=/packages/com.vrchat.avatars#3.0.5",
"samples": [
{
"displayName": "AV3 Demo Assets",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using UnityEditor;
using UnityEngine;
using VRC.Core;
using VRC.Editor;
using VRC.SDKBase.Editor;

[ExecuteInEditMode]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using UnityEditor;
using UnityEngine;
using UnityEngine.Networking;
using VRC.Editor;
using VRC.SDKBase.Editor.BuildPipeline;
using VRC.SDKBase.Editor.Validation;
using VRC.SDKBase.Validation.Performance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using UnityEditor.SceneManagement;
using UnityEngine.Networking;
using UnityEngine.SceneManagement;
using VRC.Editor;
using VRC.SDKBase.Editor.Validation;
using Object = UnityEngine.Object;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
using VRC.SDKBase.Validation.Performance.Stats;
using Object = UnityEngine.Object;

namespace VRC.Editor
{
/// <summary>
/// Setup up SDK env on editor launch
/// </summary>
Expand Down Expand Up @@ -190,7 +192,7 @@ private static void EditorUpdate()
}
}

public static void RequestConfigureSettings()
private static void RequestConfigureSettings()
{
_requestConfigureSettings = true;
}
Expand All @@ -201,7 +203,7 @@ private static void DidReloadScripts()
RequestConfigureSettings();
}

public static bool ConfigureSettings()
private static bool ConfigureSettings()
{
CheckForFirstInit();

Expand Down Expand Up @@ -383,7 +385,7 @@ private static void EnableBatching(bool enable)
return;
}

SerializedObject playerSettingsSerializedObject = new SerializedObject(playerSettings.Cast<UnityEngine.Object>().ToArray());
SerializedObject playerSettingsSerializedObject = new SerializedObject(playerSettings.Cast<Object>().ToArray());
SerializedProperty batchingSettings = playerSettingsSerializedObject.FindProperty("m_BuildTargetBatching");
if(batchingSettings == null)
{
Expand Down Expand Up @@ -447,15 +449,13 @@ public static void SetVRSDKs(BuildTargetGroup buildTargetGroup, string[] sdkName
}
}

public static bool CheckForFirstInit()
private static void CheckForFirstInit()
{
bool firstLaunch = SessionState.GetBool("EnvConfigFirstLaunch", true);
if(firstLaunch)
{
SessionState.SetBool("EnvConfigFirstLaunch", false);
}

return firstLaunch;
}

private static void SetDefaultGraphicsAPIs()
Expand Down Expand Up @@ -956,6 +956,12 @@ private static void SetPlayerSettings()
#else
PlayerSettings.Android.targetSdkVersion = AndroidSdkVersions.AndroidApiLevel26;
#endif

#if VRC_VR_OCULUS
#pragma warning disable CS0618
PlayerSettings.VROculus.v2Signing = true;
#pragma warning restore CS0618
#endif
#else
PlayerSettings.SetAdditionalIl2CppArgs("");
#endif
Expand Down Expand Up @@ -1035,10 +1041,10 @@ private static void SetBuildTarget()
#endif
}

private static void ConfigureAssets()
public static void ConfigureAssets(bool forStandaloneBuild = false)
{
#if VRC_CLIENT
VRC.UI.Client.Editor.VRCUIManagerEditorHelpers.ConfigureNewUIAssets();
VRC.UI.Client.Editor.VRCUIManagerEditorHelpers.ConfigureNewUIAssets(forStandaloneBuild);
#endif
}

Expand Down Expand Up @@ -1077,7 +1083,8 @@ public FogSettings(FogStrippingMode fogStrippingMode, bool keepLinear, bool keep
}
}

private static readonly Dictionary<string, object>[] _graphicsPresets = {
private static readonly Dictionary<string, object>[] _graphicsPresets =
{
new Dictionary<string, object>
{
{"name", "Low"},
Expand Down Expand Up @@ -1270,3 +1277,4 @@ public FogSettings(FogStrippingMode fogStrippingMode, bool keepLinear, bool keep
}
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ public static class SDKPerformanceDisplay
}
case AvatarPerformanceCategory.PhysBoneComponentCount:
{
switch (rating)
switch(rating)
{
case PerformanceRating.Excellent:
case PerformanceRating.Good:
Expand Down Expand Up @@ -811,7 +811,7 @@ public static class SDKPerformanceDisplay
}
case AvatarPerformanceCategory.PhysBoneTransformCount:
{
switch (rating)
switch(rating)
{
case PerformanceRating.Excellent:
case PerformanceRating.Good:
Expand Down Expand Up @@ -851,7 +851,7 @@ public static class SDKPerformanceDisplay
}
case AvatarPerformanceCategory.PhysBoneColliderCount:
{
switch (rating)
switch(rating)
{
case PerformanceRating.Excellent:
case PerformanceRating.Good:
Expand Down Expand Up @@ -890,7 +890,7 @@ public static class SDKPerformanceDisplay
}
case AvatarPerformanceCategory.PhysBoneCollisionCheckCount:
{
switch (rating)
switch(rating)
{
case PerformanceRating.Excellent:
case PerformanceRating.Good:
Expand Down Expand Up @@ -929,7 +929,7 @@ public static class SDKPerformanceDisplay
}
case AvatarPerformanceCategory.ContactCount:
{
switch (rating)
switch(rating)
{
case PerformanceRating.Excellent:
case PerformanceRating.Good:
Expand Down
Git LFS file not shown
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "VRC.SDKBase.Editor",
"references": [
"VRC.SDKBase"
"VRC.SDKBase",
"VRC.Enums.Validation.Performance"
],
"includePlatforms": [
"Editor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ private bool UploadFileComponentValidateFileDesc(ApiFile apiFile, string filenam
apiFile.StartSimpleUpload(fileDescriptorType,
(c) =>
{
uploadUrl = (c as ApiDictContainer).ResponseDictionary["url"] as string;
uploadUrl = (c as ApiDictContainer).ResponseDictionary["url"].ToString();
wait = false;
},
(c) =>
Expand Down Expand Up @@ -1619,7 +1619,7 @@ private bool UploadFileComponentValidateFileDesc(ApiFile apiFile, string filenam
apiFile.StartMultipartUpload(fileDescriptorType, partNumber,
(c) =>
{
uploadUrl = (c as ApiDictContainer).ResponseDictionary["url"] as string;
uploadUrl = (c as ApiDictContainer).ResponseDictionary["url"].ToString();
wait = false;
},
(c) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,9 @@ void GetUserUploadInformationAndSetupUI(string worldId)
{
try
{
Dictionary<string, object> publish = c as Dictionary<string, object>;
if (publish["canPublish"] is bool)
if (c["canPublish"].Type == BestHTTP.JSON.Json.TokenType.Boolean)
{
HasExceededPublishLimit = !(bool)(publish["canPublish"]);
HasExceededPublishLimit = !(bool)(c["canPublish"]);
}
else
HasExceededPublishLimit = true;
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
3 changes: 2 additions & 1 deletion packages/com.vrchat.base/Runtime/VRCSDK/VRC.SDKBase.asmdef
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "VRC.SDKBase",
"references": [
"Unity.Timeline"
"Unity.Timeline",
"VRC.Enums.Validation.Performance"
],
"includePlatforms": [],
"excludePlatforms": [],
Expand Down
4 changes: 2 additions & 2 deletions packages/com.vrchat.base/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.vrchat.base",
"displayName": "VRChat SDK - Base",
"version": "3.0.4",
"version": "3.0.5",
"unity": "2019.4",
"description": "Base for VRChat SDK",
"vrchatVersion": "2022.1.1",
Expand All @@ -10,7 +10,7 @@
"email": "developer@vrchat.com",
"url": "https://github.com/vrchat/packages"
},
"url": "https://github.com/vrchat/packages.git?path=/packages/com.vrchat.base#3.0.4",
"url": "https://github.com/vrchat/packages.git?path=/packages/com.vrchat.base#3.0.5",
"dependencies": {
"com.unity.burst": "1.4.11",
"com.unity.mathematics": "1.2.5"
Expand Down
Git LFS file not shown

0 comments on commit f19db78

Please sign in to comment.