I can not select a single child object from a parent object - unity3d

Probably I accidentally clicked on something, so it can be something very simple. But suddenly I can not select any child objects. When I click on a child object, the entire parent object is automatically selected.
I have a stadium, divided into sections, rows, seats etc. When I select a single seat, the entire parent object (the stadium) is immediately selected. Previously this was never the case, this is suddenly since yesterday.
Does anyone know what I could have clicked on accidentally? Thanks!
Video here: http://nl.tinypic.com/r/2dl3nlc/9
It depends on the (parent) object. Because I can select one child of the parent goal, but I can't select one child of the parent grandstand, then the whole grandstand is selected... You can't see it because it are dark colors, but the grandstand contains of multiple chairs (childs)

maybe you clicked the layer locks. have a look.
if you lock a layer out, objects belongs to that layer will be not selectable from the editor scene view.

Related

event on successfull filtering

In theory what I want to achive is pretty simple:
You choose an item from a sap.m.select which is a category.
This effects which items can be selected in a second sap.m.select that contain items that still need to be requested from a backend system.
On choosing one of the items in the second sap.m.select, a backend request for the full information of the choosen item should be triggert.
This works so far as long is I change the item in the second sap.m.select manually.
But if I choose a category this applys a Filter to the model that is the source for the second sap.m.select.
The problem is: there is no change triggert when the filter is done an thus the current item of the second changed (because one item can only have one category).
I already tried a few things, starting with manually fireing the change event of the second select as soon as I it filter. But all solutions so far did not achieve what I had planned.
(in the example of the manuall fired event after the model for the second select is filtered, the selected item of the second sap.m.select is not yet set. I need that item to know which item to query)
I only have some hacky solutions remaining, like some delay for firing the change event or modifing the handler of the change event to check the model, and the filter, for the first entry and query this in case the selected item of my sap.m.select is not yet set.
But is there nothing like an onBindingUpdated handler or something like this?

How to implement new item of sap.m.Table in Fiori?

I want to implement new item(row) in sap.m.Table. In Add Items section of Fiori guideline, it looks like this:
Here is my Demo
I have three questions:
How to add the new row to the first item of the table?
How to "highlighted it with a visual indicator"? (the left blue part in design)
Why addOneRow function did not work before setModel? Is it because data binding refresh the table or sth.?
1- The way I addressed this problem in several project is by using 2 tables : first tables only contains one fixed row and the second one is binded to an array. When clicking the 'add' button in the first table it resets the first table content and adds an item to the second table binding
2- the hightlight property is on the items. example:
<ColumnListItem type="Detail" highlight="Error">
if you use my solution from #1 you might use it only on first table
3- you're totally right, this is also why you should put your 'addOneRow' in the 'onAfterRendering' callback to make sure your last row (that you likely always want) is always displayed.
(btw if you use solution from #1 you simply dont need it anymore)

GWT: get backing object for row by id in table

Is there any simple way to get the object, used to render given row in CellTable, by index of the row?
I am using AsyncDataProvider, and don't want to remember lists of data objects, returned from the server. Also I am using MultiSelectionModel, so several items could be selected there and I need to track out which one was clicked last.
I know the index of last clicked row, so I need to get the object, corresponding to the row, somehow.
getVisibleItem? possibly combined with getPageStart if you're using paging and you only know the absolute index.
For your use-case, maybe you could use a customized selection model whose setSelected tracks the last change.

How to create an Inventory in a game dependent on what items the user obtains

I need to create a view with images that appear depending on what items the user obtains. Basically, the view is empty, then the user obtains an item and that item appears at say, (20, 44,) then they obtain a second item and that item appears at (120, 44) and it continues on in designated positions. And I also need to add a button over each item depending on what image is placed there. I thought maybe I could use an array with each individual item having it's own x,y value, and just push items in the array according to what they get. But I am not sure how to do that. Could someone please help me? It would be infinitely appreciated.
You can add items to an NSMutableArray with addObject: (which puts the object at the end of the array) or insertObject:atIndex: (which puts the object at the designated index). That seems to be the only part of your plan you were unclear on.
Also, if the item's position can be calculated from its index in the array, there's no need to store it. You can just make a function to calculate it and call that whenever you need to draw.

A treeview INSIDE OF a treeview? or how to show a list inside of a treeview

I have a treeview that lists the properties of an object. One of those properties is a list of Tags (strings) that can be a list of zero to whatever number of items. So you could tag a song with "Jazz" and "Favourite" and "Chillout" or whatever. At the moment I have these implemented as just a single string with commas separating each tag but I'd like a more intuitive user interface. All of the other properties are shown in a 2 column treeview where the first column is the property name and the second column is the property value.
It thought one way to do this would be to place another treeview inside the second column in the tags row where users can click a row to edit/delete it or there's be a "Add new tag..." row that lets them add new tags.
How could I possibly do this? Alternatively, any different GUI suggestions?
You cannot put widgets (GtkWidget) inside a column of a treeview. But you can pack several cells (GtkCellRendenderer) into a single column. A cell renderer is kind of like a lightweight widget. It can of course be subclassed so you can write your own if nothing else fits your needs.