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

            go.name = "Image Warp";

            WarpHelper.ConvertImageToImageWarp(go);

            PlaceUIElementRoot(go, menuCommand);
        }