Why touching a slider that is on top of a SCNView moves the camera underneath on iOS 8/Swift? - swift

Using Xcode 6 GM, I created a new project based on the Game template using SceneKit and Swift. Then I dragged a slider onto the SCNView. Now in the simulation, when I move the slider, the slider moves (as expected) but the camera moves as well (like if I was simply touching the screen). I'm not an experienced iOS developer but I never had this problem in the past. Did I forget to do something? Did anything change recently in the default behaviour of sliders? It looks more like a bug to me. If you add a slider, you want to control only this slider, not what is underneath.
Anyone can help me there or confirm the issue? Sorry if it's the answer is very simple. I googled my problem but could not find anything.

There is a property on the scene called allowsCameraControl, and if that is set to true then the panning will control the camera. It's probably on by default in the game template.

Related

Why can't I see my WebView Prefab in Unity game window?

I used 3D WebView in Unity development. I dragged a WebViewPrefab into my scene and clicked 'play'. From the console I knew that it had already loaded the webpage I wanted, but I could't see it in the game window.
I had looked around, but still nothing in the game window.
Could anyone please tell me what had happened?
I had a similar problem not long ago. I found that WebView doesn't seem to be like those GameObjects we commonly use in unity, it can only be viewed from one direction. This means that if you look at it from behind, you won't see anything. Therefore, you need to adjust your main camera angle.
Also, when you use WebViewPrefab.Instantiate to create your WebView Object, it defaults to a somewhat strange position and angle. I usually set its position manually, and after that, it's easier to find in the game window in play mode.

Unity2D- Why did my aspect ratio get messed up, and how do I fix it?

So I have been working on a game in Unity2D, and I was working on the tilemap. Sometime while this was happening, I realized suddenly that my game was weirdly zoomed in when I looked at it through the game view, and this was happening across the board for all of my scenes, not just the one I had been working on. I'm not sure what I could have possibly changed, as the aspect ratio is still set to free aspect in the drop-down menu. My scene also won't show up properly in the scene view either- unless I hide my canvas, I can't see my normal scene anymore even though sort orders haven't changed. I must have clicked something by mistake, but I'm not sure what. Does anyone have any suggestions on what caused this and how to fix it? I'm using Unity version 2019.4.11f1.
Fixed. I somehow clicked the "low resolution aspect ratios" box in that dropdown menu.

Sprite Animation flickering in unity

I'm trying to play sprite animation in unity, it is playing but when ut is playing the animation is flickering
How to solve this issue
I had a sprite animation on layer 0 placed on top of a background sprite image and got the flickering as well.
Change the sprite "order in layer" property to 1 (and leave your background sprite set to "order in layer" zero.
Flashing went away.
I had same problem. I fixed mine by adjusting the sorting layer. The flickering is caused by overlapping sprite.
So, your post came up in the searches. I was having a similar issue. For me, the animation would play, but there was a couple of bad frames/sprites that would be there as far as 'in' the animation, but they just weren't showing on screen. I could click on the frame image and it would show, but during animation it would disappear, causing the flashes.
But, by having the pop-out animation window open that can play frame by frame, I could figure out where the flash was. (Again, everything appears correct. Double-checked that it was set up the same as all others.) If you also watch the inspector window with the object selected, you can see the name of each animation frame as it goes by. So I did the frame-by-frame and saw that in two spots it said 'Sprite Missing'.
I figured they were just corrupted so I deleted them. But, the problem was still there (indicating that it wasn't an image issue.) Surprisingly though, when I tried dragging just those two images back in, everything worked fine. Who knows why 🤷‍♂️
Anyway, mine at least was a simple fixed once I kind of figured out where the issue was at. so, hopefully this might help someone else out at some point.

I can't move, rotate, scale GameObject in Unity Editor

I can't move, rotate or scale Objects. Why is this?
Note: I am using Unity 4.
From the Screenshot you posted, you are clearly in Pan Mod:
You need to be in Move Mode to move Objects, Rotate Mode to rotate objects, Scale Mode to scale Objects and RectTransform Mode to modify Canvas and UI Object RectTransform.
Move Mode:
Rotate Mode:
Scale Mode:
RectTransform Scale Mode:
I also noticed that you only have the Game View. You should have both Game and Scene views. You need to be in the Scene View in order to move,rotate or scale an Object.
Reset your layout then you will have Scene View. You can use the image below to see how to do that.
You can find more about this here.
I came here from a similar, but different problem. Every time I clicked a tool, it would jump back to the the Pan tool. Couldn't even select the other tools and there were no tool widgets in the viewport.
Turns out it was because I was using ProBuilder add-on and had left it in edge mode rather than object mode. Switching back to object mode solved it immediately.
Just in case someone else comes here from the same frustration as me.
On my Mac, caps lock would prevent most drag features, including this.
Either press G, or click the 3D cube icon circled in the screenshot below:
I find that Unity always cancels the selection. I don't know why, but this always works for me.

unity to xcode orientation issue

I used Unity iPhone(1.7) to build an app and brought it into Xcode (3.2.3). When the game is built out, Unity creates an appController file automatically and in it, a window is created which displays the game. When I launch the game, I can clearly see when I rotate the device that the window is rotating as well. The game elements themselves do not rotate but I see an outline of a window rotating. Since it is not a view controller, I cannot use the standard orientation methods. Before building out from Unity, the game was set to Landscape Left and the info.plist is set to the same so I am a little confused as to why I see a window rotating. Any help would be greatly appreciated.
Nevermind, I fixed it by commeting out: iphone::KeyboardOnScreen::Init();