Author Topic: Copy Localisation file into Hierarchy Window  (Read 2121 times)

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Copy Localisation file into Hierarchy Window
« on: May 09, 2012, 10:00:01 PM »
My GameObject that has the "Localisation" script attached to it. Is there anyway to automatically copy this into the Hierarchy upon compiling?

Of course if I delete this file there is an error, even though it exists in the Project window. Would be nice if the file was created upon compilation and deleted automatically when the program has finished running. Is this possible?

Thanks :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Copy Localisation file into Hierarchy Window
« Reply #1 on: May 09, 2012, 10:07:42 PM »
Wuh?

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: Copy Localisation file into Hierarchy Window
« Reply #2 on: May 09, 2012, 10:12:27 PM »
On your "Example 10 Localization" example you have two objects in the Hierarchy window.

---
Localization
UI Root (2D)
---

However if I delete it, all there is remaining is

---
UI Root (2D)
---

and it won't work. Even though it exists in the Project. I guess what I am trying to say is.

a) Is there a way for Localisation text to be extracted from the "Localisation" when it doesn't exist in the Hierarchy window

or

b) The Localisation file magically appears into the Hierarchy window after you have compiled and vanishes when you stop.


Sorry for my confusing posts, hope I made more sense this time. :)


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Copy Localisation file into Hierarchy Window
« Reply #3 on: May 09, 2012, 10:13:50 PM »
Localization only needs to be present there if you want to have a list of all available languages. Localization loads the language you specify by its name, assuming it can find it. "English" for "English.txt", for example.