This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEngine.UIElements; | |
| public static class VisualElementStyleExtensions | |
| { | |
| public static StyleLength FromPixels(int pixels) | |
| { | |
| return new StyleLength(new Length(pixels, LengthUnit.Pixel)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Net; | |
| var ipv6Address = Dns.GetHostAddresses(hostname) | |
| .FirstOrDefault(x => x.AddressFamily == AddressFamily.InterNetworkV6); | |
| var ipAddress = Dns.GetHostAddresses(hostname) | |
| .FirstOrDefault(x => x.AddressFamily == AddressFamily.InterNetwork); | |
| var address = ipv6Address ?? ipAddress; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Install-Flutter { | |
| if (Test-Path flutter -PathType Container) { | |
| Write-Host("Assuming flutter is installed in $PSScriptRoot/flutter"); | |
| } | |
| else { | |
| Write-Host('Downloading flutter to $PSScriptRoot/flutter'); | |
| git clone https://github.com/flutter/flutter.git $PSScriptRoot/flutter -b stable | |
| } | |
| $env:Path += ";$PSScriptRoot/flutter/bin" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using UnityEngine; | |
| public class TimeSampler<SampleKeyType> | |
| { | |
| private struct SampleData |