Skip to content

Commit

Permalink
Release 5.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Release Automat committed Apr 14, 2024
1 parent 6e20be4 commit 91fe01e
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 7 deletions.
6 changes: 6 additions & 0 deletions Packages/tlp.udonutils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ The used pattern MAJOR.MINOR.PATCH indicates:

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

### [5.2.3] - 2024-04-14

#### 🐛 Bug Fixes

- *(Build)* Fix compiler errors caused by test utils

### [5.2.2] - 2024-04-14

#### 🐛 Bug Fixes
Expand Down
13 changes: 10 additions & 3 deletions Packages/tlp.udonutils/Runtime/Events/ExampleEventListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ public class ExampleEventListener : TlpBaseBehaviour
[SerializeField]
private UdonEvent UdonEvent;

private void Start() {
if (!UdonEvent.AddListenerVerified(this, nameof(UdonEventFunctionName))) {
Error($"Failed to listen to {nameof(UdonEvent)}");
protected override bool SetupAndValidate() {
if (!base.SetupAndValidate()) {
return false;
}

if (UdonEvent.AddListenerVerified(this, nameof(UdonEventFunctionName))) {
return true;
}

Error($"Failed to listen to {nameof(UdonEvent)}");
return false;
}

public override void OnEvent(string eventName) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if UNITY_EDITOR
#if !COMPILER_UDONSHARP && UNITY_EDITOR
using System;
using HarmonyLib;
using UnityEngine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !COMPILER_UDONSHARP && UNITY_EDITOR
using System;
using System.Runtime.Serialization;
using JetBrains.Annotations;
Expand All @@ -20,4 +21,5 @@ public UdonTestEnvironmentException(string message) : base(message) {
public UdonTestEnvironmentException(string message, Exception innerException) : base(message, innerException) {
}
}
}
}
#endif
4 changes: 3 additions & 1 deletion Packages/tlp.udonutils/Runtime/Tests/Utils/UdonTestUtils.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !COMPILER_UDONSHARP && UNITY_EDITOR
using System;
using System.Collections.Generic;
using UdonSharp;
Expand Down Expand Up @@ -256,4 +257,5 @@ public void RemovePlayer(VRCPlayerApi player) {
}
}
}
}
}
#endif
2 changes: 1 addition & 1 deletion Packages/tlp.udonutils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tlp.udonutils",
"displayName": "TLP UdonUtils",
"version": "5.2.2",
"version": "5.2.3",
"description": "Contains the base scripts/tools for TLP packages as well as prefabs and potentially helpful scripts for VRChat worlds.",
"gitDependencies": {},
"legacyFolders": {
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ The used pattern MAJOR.MINOR.PATCH indicates:

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

### [5.2.3] - 2024-04-14

#### 🐛 Bug Fixes

- *(Build)* Fix compiler errors caused by test utils

### [5.2.2] - 2024-04-14

#### 🐛 Bug Fixes
Expand Down

0 comments on commit 91fe01e

Please sign in to comment.