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