Hi, I have a question with the Localization plugin.
I have an object with Script with public Strings variables and TextMeshPro component + LocalizeStringEvent.
When I am trying to use ‘Smart’ feature, I don’t see my variables. (Attached Files)
I want to have text: You unlocked {currentLockStatus}%. {currentLockStatus} is from the TestObject (Parent object) with Script.
But I receive: You unlocked TestObject(UnityEngine.GameObject)%
What I am doing wrong?
Thank you

currentLockStatus is the object reference.
It gets it and then calls ToString on it. so you probably need to do
{currentLockStatus.currentLockStatus}
The first gets the object reference and the 2nd gets the variable from it.
You may want to rename the object reference to avoid confusion.
It also sounds like it’s currently referencing the GameObject, you need to make sure to drag the component into the field, not the Gameobject .You can do it by opening a 2nd inspector and locking it. Then drag the component from the inspector into the other
Thank you karl_jones for help!
I tried for do it but still have some issue.
I tried to add script for the same Gameobject and add only this script as a reference. In brackets also wrote as you mentioned above.
Hi, I got it for “I tried for do it but still have some issue.
I tried to add script for the same Gameobject and add only this script as a reference. In brackets also wrote as you mentioned above.”
But I can’t do the same if the script is on parent object…
Omg. I got it.
Sorry for spam. I thought I tried everything.
Thank you!