Ejemplo n.º 1
0
 static void ConvertToUIImageWarp()
 {
     if (WarpHelper.ConvertImageToImageWarp(Selection.activeGameObject))
     {
         Debug.Log(Selection.activeGameObject.name + "'s Image component converted into a UIImageWarp component");
     }
 }
Ejemplo n.º 2
0
        static public void AddImage(MenuCommand menuCommand)
        {
            GameObject go = DefaultControls.CreateImage(GetStandardResources());

            go.name = "Image Warp";

            WarpHelper.ConvertImageToImageWarp(go);

            PlaceUIElementRoot(go, menuCommand);
        }