Skip to content

Commit

Permalink
Release 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Release Automat committed May 16, 2024
1 parent eada1d4 commit 0ce3a65
Show file tree
Hide file tree
Showing 137 changed files with 28,477 additions and 12,496 deletions.
24 changes: 20 additions & 4 deletions Packages/tlp.udonutils/Editor/Tests/TestWithLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using UnityEngine.TestTools;
using VRC.SDKBase;
using Object = UnityEngine.Object;
using Assert = UnityEngine.Assertions.Assert;

namespace TLP.UdonUtils.Editor.Tests
{
Expand All @@ -29,10 +30,7 @@ public void ClearLog() {
var assembly = Assembly.GetAssembly(typeof(UnityEditor.Editor));
var type = assembly.GetType("UnityEditor.LogEntries");
var method = type.GetMethod("Clear");
if (method == null) {
Assert.Fail("Editor log clear method not found");
}

Assert.IsNotNull(method, "Editor log clear method not found");
method.Invoke(new object(), null);
}

Expand Down Expand Up @@ -101,6 +99,11 @@ protected static void ExpectError(string message) {
LogAssert.Expect(LogType.Error, new Regex(".*" + message + ".*"));
}

protected static void ExpectAssert(string message) {
ExpectError(message);
LogAssert.Expect(LogType.Assert, new Regex(".*" + message + ".*"));
}

protected static void ExpectWarning(string message) {
LogAssert.Expect(LogType.Warning, new Regex(".*" + message + ".*"));
}
Expand All @@ -122,5 +125,18 @@ protected static GameObject FindGameObjectIncludingInactive(string goName) {

return gameObject;
}

public void AreApproximatelyEqual(Vector3 a, Vector3 b, float delta = 1e-5f) {
bool ok = false;
try {
Assert.AreApproximatelyEqual(a.x, b.x, delta);
Assert.AreApproximatelyEqual(a.y, b.y, delta);
Assert.AreApproximatelyEqual(a.z, b.z, delta);
ok = true;
}
finally {
if (!ok) Debug.LogError($"{a} != {b}");
}
}
}
}
29 changes: 23 additions & 6 deletions Packages/tlp.udonutils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ Contains the base scripts/tools for TLP packages as well as prefabs and potentia

Please note that there is no explicit documentation available. The code is changing less frequently now and relatively stableand where it made sense there is some documentation in the code.

# Dependencies
## Installation

1. Install VRChat World SDK 3.6
2. Install CyanPlayerObjectPool: https://cyanlaser.github.io/CyanPlayerObjectPool/
3. Install TLP UdonUtils: https://guribo.github.io/TLP/

## Setup

1. Add `TLP_Essentials` prefab to your scene to get the core components
1. TLPLogger - *for logging anything TLP related*
2. WorldVersionCheck - *Warns users if a player with a new world version joins*
3. TLPNetworkTime - *Much more accurate VRC network time provider (sub-millisecond accuracy)*

- VRChat Creator Companion
- VRC World SDK
- [Cyan.PlayerObjectPool](https://cyanlaser.github.io/CyanPlayerObjectPool/) - repository needs to be added to VCC manually first via `Add to VCC` Button!


## Versioning

This package is versioned using [Semantic Version](https://semver.org/).
Expand All @@ -30,6 +36,17 @@ The used pattern MAJOR.MINOR.PATCH indicates:

All notable changes to this project will be documented in this file.

### [7.0.0] - 2024-05-16

#### 🚀 Features

- [**breaking**] Upgrade logging, world version check, split/extend physics based prediction utils, increase accuracy of TLP network time to double, improved overall accuracy/robustness in low performance situations, added latency checker, various prefab and scene updates
- Add GetInstance function to TlpNetworkTime, expose various variables, add basic usage documentation

#### ⚙️ Miscellaneous Tasks

- Update test scene

### [6.1.2] - 2024-05-10

#### ⚙️ Miscellaneous Tasks
Expand Down
Loading

0 comments on commit 0ce3a65

Please sign in to comment.