Description
The `GetMetadata` method of the `SceneFile` class retrieves metadata associated with a scene file. This method allows you to access specific metadata values by providing a title key. If the specified metadata key does not exist, the method returns a default value provided as a parameter.
Usage
To use the `GetMetadata` method, you need to have an instance of the `SceneFile` class. Call the method with the desired metadata key and a default value to return if the key is not found.
```csharp
SceneFile sceneFile = new SceneFile();
string metadataValue = sceneFile.GetMetadata("Author", "Unknown");
```
In this example, the method attempts to retrieve the metadata value associated with the key "Author". If the key does not exist, it returns "Unknown" as the default value.
Example
SceneFile sceneFile = new SceneFile();
string author = sceneFile.GetMetadata("Author", "Unknown");
string version = sceneFile.GetMetadata("Version", "1.0");
// Output the retrieved metadata
// author will be "Unknown" if "Author" metadata is not set
// version will be "1.0" if "Version" metadata is not set