playMaker

Author Topic: NGUITools.MarkParentAsChanged  (Read 1690 times)

Budde88

  • Full Member
  • ***
  • Posts: 165
NGUITools.MarkParentAsChanged
« on: April 29, 2017, 12:12:42 PM »
I was wondering if I could put in a request which is rather urgent, I need it before Tuesday :/  (I have a meeting with a potential investor)

I am aware that there is an action called NguiToolsAddChild, and I was hoping
someone could make an action for NGUITools.MarkParentAsChanged.

This action will help when I reparent a gameobject into a table, so that the table will update it's items inside.

Thanks a million if you can help me out in time!

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: NGUITools.MarkParentAsChanged
« Reply #1 on: April 29, 2017, 12:49:31 PM »
it depends on what you really want it to look like, i have a game on google play where i created a table like that to select characters and i used a little check mark to update it, but i'm not too sure of what you need. you could easily use set parent instead of the gui action. and then reset position or set min and max
looking at the achor preset top right is min = 1, max = 1. so play around with it and figure out what the other positions represent.

if you're interested in checking it out
https://play.google.com/store/apps/details?id=com.Play4ever.BallzFall

Budde88

  • Full Member
  • ***
  • Posts: 165
Re: NGUITools.MarkParentAsChanged
« Reply #2 on: May 03, 2017, 06:12:35 AM »
Hey,

Yeah Updating the table with a checkmark is quite standard. When you reparent objects into a new table, the checkmark doesn't behave the same way, I spoke to the creator of NGUI and he told me that this is the action I have to make use of.
So if anyone could help that would be really helpful.

Thanks