From ceb98e569a8061d4dd5f4b0c66ace7c41426b411 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Tue, 28 Nov 2023 17:25:05 -0500 Subject: [PATCH] com.utilities.rest 2.2.7 (#53) - refactored AbstractAuthentication.LoadFromAsset to take optional scriptable object asset to skip expensive Resources.LoadAll in implementations --- Runtime/AbstractAuthentication.cs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/AbstractAuthentication.cs b/Runtime/AbstractAuthentication.cs index ee689a8..8b85a25 100644 --- a/Runtime/AbstractAuthentication.cs +++ b/Runtime/AbstractAuthentication.cs @@ -18,7 +18,7 @@ public abstract class AbstractAuthentication : IAuth /// /// The loaded or . /// - public abstract TAuthentication LoadFromAsset() where T : ScriptableObject, IConfiguration; + public abstract TAuthentication LoadFromAsset(T asset = null) where T : ScriptableObject, IConfiguration; /// /// Attempts to load the authentication from the system environment variables. diff --git a/package.json b/package.json index 49389f2..0e372a9 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Utilities.Rest", "description": "This package contains useful RESTful utilities for the Unity Game Engine.", "keywords": [], - "version": "2.2.6", + "version": "2.2.7", "unity": "2021.3", "documentationUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest#documentation", "changelogUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest/releases",