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

            go.name = "RawImage Warp";

            WarpHelper.ConvertRawImageToRawImageWarp(go);

            PlaceUIElementRoot(go, menuCommand);
        }