Hello Guest

Author Topic: Adding code to tk2dCamera script  (Read 3275 times)

frunny

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Adding code to tk2dCamera script
« on: December 28, 2013, 01:34:08 pm »
Hello,

I'm very new to all this but got it managed to have my little sprite running and jumping on top of a tile map made with 2dtoolkit.

Now I wanted to add some code to the tk2dcamera script but it seems it is impossible to display new variables from my code in the inspector for the tk2dcamera.
With other scripts I don't have that problem. Did I miss something?

Any hint for me how to solve this?

Thanks in advanced!



unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Adding code to tk2dCamera script
« Reply #1 on: December 28, 2013, 07:51:21 pm »
tk2dCamera uses a custom inspector. tk2dCameraEditor.cs
You probably shouldn't be changing tk2dCamera - almost everything can be controlled from another side by side mono behaviour.