namespace Zinnia.Extension { using UnityEngine; using Zinnia.Data.Type; /// /// Extended methods for the Type. /// public static class TransformDataExtensions { /// /// Attempts to retrieve the from a given . /// /// The to retrieve the from. /// The if one exists on the given . public static GameObject TryGetGameObject(this TransformData transformData) { return transformData?.Transform == null ? null : transformData.Transform.gameObject; } } }