Hello Guest

Author Topic: Expose 2D Toolkit Sprite Editor Controls in Game?!?  (Read 4542 times)

landon912

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Expose 2D Toolkit Sprite Editor Controls in Game?!?
« on: September 14, 2013, 02:06:20 am »


Anyway to expose those gray controls to change the size of the sprite that are in the editor for use in game?

Kinda a vague question I know, but I don't know of a better way to explain.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Expose 2D Toolkit Sprite Editor Controls in Game?!?
« Reply #1 on: September 14, 2013, 03:10:39 pm »
Its not really a vague question, but its not possible out of the box. Those handles are defined in tk2dGuiUtility - they don't use any editor specific code, but it does expect to be called from OnGUI or something similar. It is possible to modify the code to deal with it properly, but will require some modification to whats there already.

You do have some code to start with though... :)

landon912

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Expose 2D Toolkit Sprite Editor Controls in Game?!?
« Reply #2 on: September 14, 2013, 07:21:31 pm »
Awesome! I'll look into it and update the thread soon.