Copy clone in prefab - clone

I have a prefab with some datas (ints, strings...) and I have a Clone of this prefab. In this clone, I modify some of those ints and strings.
And after that I want to copy my Clone in the prefab, I mean that I want my prefab to have the same properties of my clone object.
I found :
UnityEditor.PrefabUtility.ReplacePrefab
but this is only functional in the editor.
Can you help me ? Another thing is that I don't want to copy manualy the datas.
Thanks a lot !

Maybe Component Copier is worth to look at. Although there is a little bug and the component menu is gone (right click menu in transform does the job) it helped me. And no, I am not the developer but just a user.

Related

How to quickly snap a view in storyboard back into its constraints after accidentally moving it

Everything I have found, every one says this cant be done.
I studied in fullsail university and they taught me how to do this so I know without a doubt it can be done. No one just knows how and assumes it can't.
Basically, when in XCode-story board, I would add constraints to a view and everything is all blue and perfect. From there, if you click, hold a drag, the view to another position then all of the constraints will turn orange. (Not RED because the constraints are still good it just simply needs to snap back into place..)
When in school my teacher taught me a quick key short cut that you press and everything snaps back into place and its all blue again. It has been a while since I have coded and i am just now getting back into it again and i just cant remember what that shortcut was.
I hope someone out there knows how to do this. Maybe any fullsail graduates?
Your responses are greatly appreciated.
I figured it out.
option + CMND + '='
What you're looking to do is referred to as "Update(ing) Frames."
The quick command is indeed option-command-equals
The command can also be reached from the bottom menu of a storyboard.
This link may change in the future but check out the Auto Layout Guide. Specifically reference the "Resolve Auto Layout Issues Tool" section.

Swift - Get CCNode from scene

I've tried to search on the internet for a method that can get a specific node from the scene. I've seen a lot of methods, but it doesn't give me a clear answer.
I've have build a scene in SpriteBuilder from Cocos2D. This is how the MainScene.ccb looks like:
If needed: This is how Player.ccb looks like:
I'm trying to get the player 'object' in Xcode after I published the project. I've tried to use CCBReader, but I can't find any useful method (unless I missed it). Also I've tried so use self.children, but I don't know how to continue any further with that.
Can you help me out? At the end, I want to get the position of the player.
Thanks!
By the way, I'm a beginner in Swift, so don't expect that I know all of the terms.
When you add nodes (sprite) to your sprite builder project, make sure it is selected, then on the right, click theorem code connections tab. In the 'Doc root var' type your variable name in the box.
When you load Xcode select the file that loads the scene from sprite builder and you can then declare a variable in this file with the same name you gave it in sprite builder. You will then be able to use that node (sprite) whenever you want and access it's properties.

iOS coredata graphical model layout, shows entities on top o each other

So, my CoreData graphical editor style "Graph", was working ok before,
now if I check something on the graphical editor, go to another file, and come back again,
I find all my entities on top of each other... I organise them, go to other file, come back and again on top of each other!
So whats going on, how to fix this annoying thing? thx!
Drag the entities away from each other and save the file.

Moving objects that are behind other objects in Storyboard

I often stack objects in IB/Storyboard it's almost impossible to drag objects that are behind other objects without moving the objects in front. Is there anyway I can move the objects that are already selected but are behind other objects? It always selects the object that's at the top when I try to move it or do I have to bring it to the front and move it and then send it back to the back?
Thanks!
Alan
Control + Shift + Click on an object in Interface Builder to see a menu of all of the objects under the mouse.
From:
https://stackoverflow.com/a/934152/1374512
Still no enough reputations to add comment, so I have to make a comment as an answer.
As #nvrtd mentioned, you can hold Ctrl + Shift and then click to show controls selection popup.
but as #David said, in that way you can only select rather than drag/move using mouse:
That doesn't work for me. I can select it, but can't move it.
my solution:
select the control first
move the control with keyboard arrow keys
You could also change the order of the objects, depending on your design... might be a solution. See SO here.
How to send objects in NIB files to front/back?

Treeviews with Glade (Gtk Gui editor)

I'm looking for a way to make a tree with glade.
I've already found how to manage lists with all kind of stuff in it, but I can't figure how to properly let an element have childs. I tried by going into the hierarchy tab, and then drag columns and cellrenderers into some others. They move for one second, and then get replaced where they was.
I also tried that kind of drag'n'drop thing on the other "Columns" and "Data" widgets on glade, but it doesn't work either :(.
Does someone have a solution for that? Is it even possible only with Glade?
I hope i'm clear with my problem.
PS : I'm using Glade 3.12.1.
Which version of glade do you use? Did you try to right-click on the treeview and then edit?
Right-click on the label then you can choose the type of child you want to add.

Resources