From 53b8c7ee93c449f99facde5954538189d09e92e1 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Fri, 27 Feb 2026 01:57:01 +0800 Subject: [PATCH] feat: InvokeRepeating time should default to repeat rate --- Runtime/Export/Scripting/MonoBehaviour.bindings.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Runtime/Export/Scripting/MonoBehaviour.bindings.cs b/Runtime/Export/Scripting/MonoBehaviour.bindings.cs index 3c360fc5d..160d60caa 100644 --- a/Runtime/Export/Scripting/MonoBehaviour.bindings.cs +++ b/Runtime/Export/Scripting/MonoBehaviour.bindings.cs @@ -64,6 +64,12 @@ public void Invoke(string methodName, float time) InvokeDelayed(this, methodName, time, 0.0f); } + // Invokes the method /methodName/ in /time/ seconds. + public void InvokeRepeating(string methodName, float repeatRate) + { + InvokeDelayed(this, methodName, repeatRate, repeatRate); + } + // Invokes the method /methodName/ in /time/ seconds. public void InvokeRepeating(string methodName, float time, float repeatRate) {