Questions tagged [zposition]

The Euler rotation about the z axis (in radians).

34 questions
0
votes
0 answers

Change bone Z position on root bone in Unreal 5.2.1 animation

I’ve import an old animation, but it has a wrong root bone Z position (set to 90 instead of 0, to touch the floor not to floating…). When I set it to 0, everything works, the full animation works well with the character touching the floor in Z 0.…
Alessandro Ornano
  • 34,887
  • 11
  • 106
  • 133
0
votes
0 answers

UIView with increased zPosition doesn't react to user interactions

I'm displaying a UIView as subview in all view controllers using below code. func showSubViewInAllScreens() { let mySubView = MySubView() mySubView.layer.zPosition = 1 guard let window = UIApplication.shared.windows.last else {…
0
votes
1 answer

Is it Possible to Interleave WebView and CALayerViews in Swift

I have a view that acts as a container for multiple CAShapeLayers. These contain bezier that form a composition on the screen that the user can manage in different ways to do with line weight, colour, shape fill, opacity etc. I want to introduce…
Dan Donaldson
  • 1,061
  • 1
  • 8
  • 21
0
votes
1 answer

UIButton Clicks Being Intercepted by Programmatic Layer

I'm working on an app that includes the screen shown below. The panel with the list view is instantiated from a Nib, but the pale grey panel with the drawing in it is a dynamically generated UIView, which is a subview of a UIView subclass called…
Dan Donaldson
  • 1,061
  • 1
  • 8
  • 21
0
votes
1 answer

Swift UIView zPosition issue, views overlap on other views

I am writing a calendar view, I added three other views to its super view, so the calendar view should be on the topper layer, it looks fine on the simulator but later on, I found that I can't click the button, then I checked the view hierarchy,…
Zim
  • 674
  • 7
  • 15
0
votes
1 answer

Changing the zPosition of the collectionView cell in tvOS in Swift

I am trying to bring the focused collectionView cell to the front by setting the zPosition like in the code shown below. But that doesn't seem to have any effect. Please let me know the correct procedure to do it. func collectionView(_…
0
votes
0 answers

How to use the Zposition of UIBezierPath() and SKNode?

I have a UIView where i draw lines with UIBezierPath() and where i have SKSHapeNode child. Sometimes, the drawing is superimposed with the nodes. When it is the case, i want the node to be upside of the drawing. But even wehn the nodes have a bigger…
Titouan
  • 531
  • 4
  • 13
0
votes
0 answers

How to position an SKLabelNode on top of a UISlider in SpriteKit

I'm using UISliders in my SpriteKit game. Sometimes I want to pause the game and add some info in an SKLabelNode but I can't find a way to position the SKLabelNode on top of a UISlider. Here's a simplified example. override func didMove(to view:…
Ross Knipe
  • 518
  • 3
  • 16
0
votes
1 answer

Change subview layer position

Good evening, I have been trying to figure out how to fade a screen when I press a button in order to give a subview a more distinct appearance. I have researched zPositions and I thought that implementing this feature within my code would help.…
user9951119
0
votes
1 answer

How to handle multiple sprites' zPositions as they move around each other?

I'm new to programming in Swift. I'm trying to create a game where I have a bunch of sprites that move randomly around the screen. Let's say I have a bunch of simple 2D image sprites. As a sprite move upwards (as in y position is increasing) I want…
cosmos101
  • 13
  • 1
0
votes
1 answer

change zPosition of tiles

I want to change the zPosition of some tiles in my tile map. I use the following function to achieve this: static func setZPosition(to tileMap: SKTileMapNode, and tileInfo: String){ let tileSize = tileMap.tileSize let halfWidth =…
Marcel
  • 472
  • 2
  • 6
  • 19
0
votes
1 answer

SplitViewController Button overlap

I have a UISplitViewController with a MasterViewController and a DetailViewController. In my MasterViewController i am adding a button with an target action assigned and it works all good... BUT: I want my button to be centered on the border between…
Creative crypter
  • 1,348
  • 6
  • 30
  • 67
0
votes
0 answers

How to Visualize zPositions in iOS

My team and I are working on a SpriteKit based iOS game of medium complexity. There are lots of layers and nodes to the design of the game and the zPositioning of the nodes has gotten sloppy. One task I have agreed to take on is the revamping of…
zeeple
  • 5,509
  • 12
  • 43
  • 71
0
votes
3 answers

How can i change the zPosition of a tableView section header?

I have a tableView where when I call viewForHeaderInSection before I return the cell. I have this code: headerCell.layer.zPosition = headerCell.layer.zPosition-1 Now this works in the sense that the cells scroll over the section header which is…
0
votes
1 answer

How to make tap through parent nodes?

I searched trough SO and tried few examples, but I still can't understand this behaviour. On simulator 7.1 tap-through works, but on 8.1 don't work.Also I asked earlier similar question, but not the same as this and I solved it using nodesAtPoint…
Whirlwind
  • 14,286
  • 11
  • 68
  • 157