---
title: "init(color:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/unlitmaterial/init(color:)"
---

# init(color:)

Creates an unlit material with the given base color.

## Declaration

```swift
init(color: NSColor)
```

## Parameters

- `color`: The base color for the new material.

## Discussion

Discussion note: The blending mode of UnlitMaterial materials should be configured explicitly with the blending property for transparent or translucent surfaces.  The opaque mode is used when unset.
