# CallStaticFloatMethod

> Invokes the specified \<tt\>methodID\</tt\> static method on a Java object, optionally passing in an array of arguments (\<tt\>args\</tt\>).

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

## CallStaticFloatMethod(IntPtr, IntPtr, jvalue\[])

Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).

```csharp
public static float CallStaticFloatMethod(IntPtr clazz, IntPtr methodID, jvalue[] args)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): **** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): **** (jvalue\[]):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |

### Remarks

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)

## CallStaticFloatMethod(IntPtr, IntPtr, Span\<jvalue>)

Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).

```csharp
public static float CallStaticFloatMethod(IntPtr clazz, IntPtr methodID, Span<jvalue> args)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): **** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): **** (\[Span\<jvalue>]\(https\://learn.microsoft.com/dotnet/api/system.span-1)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |

### Remarks

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
