<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/UnlitMaterial/init(color:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation13UnlitMaterialV0A3KitE5colorACSo7NSColorC_tcfc::OverloadGroup"
  },
  "title" : "init(color:)"
}
-->

# init(color:)

Creates an unlit material with the given base color.

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

## Parameters

`color`

The base color for the new material.

## Discussion> Note: The blending mode of `UnlitMaterial` materials should be configured explicitly with the
> ``doc://com.apple.RealityKit/documentation/RealityKit/UnlitMaterial/blending-swift.property`` property for transparent or translucent surfaces.  The
> `opaque` mode is used when unset.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)