This file contains 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
void main() { | |
final RegExp pattern = RegExp(r"(?<quantity>\d+) (?<unit>\w+)"); | |
final RegExpMatch matches = pattern.firstMatch("2 weeks"); | |
print(matches.namedGroup("quantity")); | |
print(matches.namedGroup("unit")); | |
} |
This file contains 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 Unity.Mathematics; | |
using UnityEngine; | |
namespace Krooq.Core | |
{ | |
[Serializable] | |
public struct FloatAnimation | |
{ | |
[HideInInspector] public float Value; |