# SetAppearance(Type, Appearance)

> Sets the foreground appearance of the specified inset types at runtime.

## Definition

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

```csharp
public void SetAppearance(AndroidWindowInsets.Type type, AndroidWindowInsets.Appearance appearance)
```

### Parameters

**** (\[Type]\(/engine/6000.7/script-reference/unityengine/android/androidwindowinsets/type)): The inset types to apply the appearance to. Multiple types can be combined with bitwise OR.**** (\[Appearance]\(/engine/6000.7/script-reference/unityengine/android/androidwindowinsets/appearance)): The foreground appearance to set.

### Remarks

Controls whether system bar icons appear light or dark for individual inset types. Multiple inset types can be combined to set the same appearance for all of them.

**Note:** Only supported on Android 11 (API 30) or later.

### Examples

```csharp
using UnityEngine;
using UnityEngine.Android;

public class Controller : MonoBehaviour
{
    public void Start()
    {
        var insets = AndroidApplication.currentWindowInsets;
        insets.SetAppearance(AndroidWindowInsets.Type.StatusBars, AndroidWindowInsets.Appearance.Light);
        // Set both bars at once.
        insets.SetAppearance(AndroidWindowInsets.Type.StatusBars | AndroidWindowInsets.Type.NavigationBars, AndroidWindowInsets.Appearance.Dark);
    }
}
```
