UILabel.GetWordAtPosition C# (CSharp) Méthode

GetWordAtPosition() public méthode

Retrieve the word directly below the specified relative-to-label position.
public GetWordAtPosition ( Vector2 localPos ) : string
localPos Vector2
Résultat string
	public string GetWordAtPosition (Vector2 localPos) { return GetWordAtCharacterIndex(GetCharacterIndexAtPosition(localPos)); }

Same methods

UILabel::GetWordAtPosition ( Vector3 worldPos ) : string

Usage Example

Exemple #1
0
 static public int GetWordAtPosition(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.Vector2)))
         {
             UILabel             self = (UILabel)checkSelf(l);
             UnityEngine.Vector2 a1;
             checkType(l, 2, out a1);
             var ret = self.GetWordAtPosition(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.Vector3)))
         {
             UILabel             self = (UILabel)checkSelf(l);
             UnityEngine.Vector3 a1;
             checkType(l, 2, out a1);
             var ret = self.GetWordAtPosition(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of UILabel::GetWordAtPosition