public static SceneResponseObjectMessage FromCreateObjectMessage(CreatedObjectMessage msg)
 {
     return(
         new SceneResponseObjectMessage()
     {
         ObjectId = msg.ObjectId,
         ObjectType = msg.ObjectType,
         ParentAnchorId = msg.ParentAnchorId,
         LocalPosition = msg.LocalPosition,
         LocalRotation = msg.LocalRotation,
         LocalScale = msg.LocalScale
     }
         );
 }
        public static CreatedObjectMessage Send(
            MessageService messageService,
            string objectType,
            GameObject gameObject,
            GameObject worldAnchorParent)
        {
            var msg = new CreatedObjectMessage()
            {
                ObjectId       = gameObject.name,
                ObjectType     = objectType,
                ParentAnchorId = worldAnchorParent.name,
                LocalPosition  = gameObject.transform.localPosition,
                LocalScale     = gameObject.transform.localScale,
                LocalRotation  = gameObject.transform.localRotation
            };

            messageService.Send(msg);

            return(msg);
        }
 public SceneResponseObjectMessage(CreatedObjectMessage msg)
 {
 }