static void ConvertToUIRawImageWarp() { if (WarpHelper.ConvertRawImageToRawImageWarp(Selection.activeGameObject)) { Debug.Log(Selection.activeGameObject.name + "'s RawImage component converted into a UIRawImageWarp component"); } }
static public void AddRawImage(MenuCommand menuCommand) { GameObject go = DefaultControls.CreateRawImage(GetStandardResources()); go.name = "RawImage Warp"; WarpHelper.ConvertRawImageToRawImageWarp(go); PlaceUIElementRoot(go, menuCommand); }