/// <summary>
        ///     Creates new gameObject at given anchoredPosition and size.
        /// </summary>
        public SLUIGameObject Create([NotNull] string name, [NotNull] SLUIVector2 anchoredPosition, [NotNull] SLUIVector2 sizeDelta)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }
            if (anchoredPosition == null)
            {
                throw new ArgumentNullException(nameof(anchoredPosition));
            }
            if (sizeDelta == null)
            {
                throw new ArgumentNullException(nameof(sizeDelta));
            }
            var newGameObject = new GameObject(name);

            InternalInitializeGameObject(newGameObject);

            var newReference = new SLUIGameObject();

            newReference.LoadSLUIObject(Parent.Parent, newGameObject);
            InternalInitializeObject(newReference);
            newReference.rectTransform.anchoredPosition = anchoredPosition;
            newReference.rectTransform.sizeDelta        = sizeDelta;
            return(newReference);
        }
 /// <summary>
 ///     Creates new gameObject at given anchoredPosition.
 /// </summary>
 public SLUIGameObject Create([NotNull] string name, [NotNull] SLUIVector2 anchoredPosition)
 {
     if (name == null)
     {
         throw new ArgumentNullException(nameof(name));
     }
     if (anchoredPosition == null)
     {
         throw new ArgumentNullException(nameof(anchoredPosition));
     }
     return(Create(name, anchoredPosition, SLUIVector2.Zero));
 }