Experimental browser for the Atmosphere
In Yarn Spinner v3, we've also added a bunch of features that improve variables, making them more powerful and - in the Unity API especially - more native and nice to use. • Runtime-computed "smart" variables • Enum types • Code generation to expose C#-side properties for each of your variables 🧵👇
May 7, 2025, 8:20 AM
{ "uri": "at://did:plc:ogwyns53xduhyolmf7xvbcnp/app.bsky.feed.post/3lokxnqnoyk2o", "cid": "bafyreid5l7kbonzuyulva47565x6yxe52vc3agte4xq5zelpgx6moyl4r4", "value": { "text": "In Yarn Spinner v3, we've also added a bunch of features that improve variables, making them more powerful and - in the Unity API especially - more native and nice to use.\n\n• Runtime-computed \"smart\" variables\n• Enum types\n• Code generation to expose C#-side properties for each of your variables\n\n🧵👇", "$type": "app.bsky.feed.post", "embed": { "$type": "app.bsky.embed.images", "images": [ { "alt": "Tile shows a feature for Yarn Spinner V 3: Variable Storage Code Generation. The image notes that this feature is out now in Unity and more information can be found at yarn spinner dot dev slash V 3. The main content of the tile is an annotated code example that reads \"In the past, variables declared in Yarn like so...\"\nA code line then reads \"declare variable player name as string\".\n\"... would become accessible in C sharp by calling the variable storage's Try Get Value function and handling the cases where the returned value had no value or the wrong type. Now, the storage will have properties for your variables!\"\nA code block then shows how by getting the Variable Storage component in-engine, it now has an accessor for the player name variable that can be accessed like any normal object property. Here, it is being used to make a greeting string composed of \"Hi\" plus variable storage dot player name.", "image": { "$type": "blob", "ref": { "$link": "bafkreidufrwqo2rrgr7sbs4ht6j6p3pcknw55rjbkdkippywn4ljhoxiee" }, "mimeType": "image/jpeg", "size": 961125 }, "aspectRatio": { "width": 1920, "height": 1080 } } ] }, "langs": [ "en" ], "createdAt": "2025-05-07T08:20:20.476Z" } }