<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PHASE",
  "identifier" : "/documentation/PHASE/PHASEStringMetaParameter",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PHASE"
    ],
    "preciseIdentifier" : "c:objc(cs)PHASEStringMetaParameter"
  },
  "title" : "PHASEStringMetaParameter"
}
-->

# PHASEStringMetaParameter

A metaparameter with a text definition that can change over time.

```
class PHASEStringMetaParameter
```

## Overview

This class contains text that updates, like a “weather” metaparameter that the app changes from “rainy” to “sunny.”

To create an instance of this class, first create a [`PHASEStringMetaParameterDefinition`](/documentation/PHASE/PHASEStringMetaParameterDefinition), and either:

- Register it with the engine by calling [`registerGlobalMetaParameter(metaParameterDefinition:)`](/documentation/PHASE/PHASEAssetRegistry/registerGlobalMetaParameter(metaParameterDefinition:)), then access the instance of this class in the engine’s [`globalMetaParameters`](/documentation/PHASE/PHASEAssetRegistry/globalMetaParameters) dictionary.
- Pass it to the [`PHASESwitchNodeDefinition`](/documentation/PHASE/PHASESwitchNodeDefinition) initializer, [`init(switchMetaParameterDefinition:)`](/documentation/PHASE/PHASESwitchNodeDefinition/init(switchMetaParameterDefinition:)), and then access the instance of this class in a sound event’s [`metaParameters`](/documentation/PHASE/PHASESoundEvent/metaParameters) dictionary.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

### Inherits From

[`PHASEMetaParameter`](/documentation/PHASE/PHASEMetaParameter)

---

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)