You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
511 B
12 lines
511 B
using UnityEngine;
|
|
using System;
|
|
|
|
namespace UnityEditor.Rendering.TestFramework
|
|
{
|
|
static class YAMLUtilities
|
|
{
|
|
public static string ToYAML(this Quaternion v) => FormattableString.Invariant($"{{x: {v.x}, y: {v.y}, z: {v.z}, w: {v.w}}}");
|
|
public static string ToYAML(this Vector3 v) => FormattableString.Invariant($"{{x: {v.x}, y: {v.y}, z: {v.z}}}");
|
|
public static string ToYAML(this Color v) => FormattableString.Invariant($"{{r: {v.r}, g: {v.g}, b: {v.b}, a: {v.a}}}");
|
|
}
|
|
}
|