Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: fghjru on March 26, 2014, 04:36:06 AM
-
Hello, i am new to NGUI. I imported NGUI 3.5.5 package in Unity, it works fine. All examples are working, and i don't receive any errors. But when i import NDATA package, errors appear:
In Unity Console
Assets/NData/NGUI/NData/NguiLocalizationKeyBinding.cs(18,27): error CS1061: Type `UILocalize' does not contain a definition for `Localize' and no extension method `Localize' of type `UILocalize' could be found (are you missing a using directive or an assembly reference?)
So error appear at
protected override void ApplyNewValue (string newValue)
{
_localize.key = newValue;
_localize.Localize(); // ERROR
}
and in NguiUtils.cs
output += Localization.instance.Get(key);
When I comment this two lines, errors disappear!
-
How should i properly import NDATA to Unity?
-
It' not NGUI's Issue :)
and good news Is, New NData Version Updated, no more Error now.
-
but i trying to solve this.
Localization.instance.Get(key);
we need to replace it with
output += Localization.Get(key);
and what should i do with
protected override void ApplyNewValue (string newValue)
{
_localize.key = newValue;
_localize.Localize();
}
-
Also getting this issue after installing the latest NGUI and NData.
-
Tell that to NData's author, not me.