Author Topic: nGUI w/ Unity Test Tools  (Read 2681 times)

Saxi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 24
    • View Profile
nGUI w/ Unity Test Tools
« on: August 10, 2014, 04:51:44 PM »
How do you make this work?
When I create a test and add a nGUI element, the UIRoot appears outside of the test, and I can't seem to move it under the test.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: nGUI w/ Unity Test Tools
« Reply #1 on: August 10, 2014, 06:21:07 PM »
I don't know what those are, so I can't tell you.

Saxi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: nGUI w/ Unity Test Tools
« Reply #2 on: August 10, 2014, 06:39:22 PM »
I don't know what those are, so I can't tell you.

It is an asset provided by Unity that basically offers NUnit unit testing, customized to work well with unity.

Here is a video of what happens when trying to build a test.  Normally you build a test, then add all your objects and prefabs under the test.  Unity will create the test and create all the objects as if it was a new scene, run the test, clean up and run the next test creating a new scene.  But I have no way of getting UIRoot, camera and the other objects under the test.  It refuses to go in it.

Video: https://db.tt/prUMLFcj

r.pedra

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 20
  • Posts: 131
    • View Profile
Re: nGUI w/ Unity Test Tools
« Reply #3 on: August 11, 2014, 02:38:14 AM »
You are trying to move a parent transform on a child of it and it's not possible.

Saxi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: nGUI w/ Unity Test Tools
« Reply #4 on: August 11, 2014, 11:29:33 AM »
You are trying to move a parent transform on a child of it and it's not possible.

Thanks, I got it figured it out.  I had the selected when I added the nGUI element, from there I couldn't remove the test from it no matter what I did.  If I made sure I cleared my selection first, it works.