//When it gets enabled
 private void OnEnable()
 {
     locAsset      = (SimpleLocAsset)target;                         //Set the target
     locSerialized = new SerializedObject(locAsset);                 //Serialize the object for modification
     avlLangs      = locSerialized.FindProperty("availableLangs");   //Set lang property
     locKeys       = locSerialized.FindProperty("localizationKeys"); //Set localization keys property
     shownLocKeys  = new List <bool>(new bool[locAsset.localizationKeys.Count]);
 }
 public void SetLocAsset(SimpleLocAsset asset)
 {
     locAsset = asset;
 }