UnityEngine.EventSystems.RaycastResult.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            if (!this.isValid)
            {
                return "";
            }
            object[] objArray1 = new object[] { 
                "Name: ", this.gameObject, "\nmodule: ", this.module, "\ndistance: ", this.distance, "\nindex: ", this.index, "\ndepth: ", this.depth, "\nworldNormal: ", this.worldNormal, "\nworldPosition: ", this.worldPosition, "\nscreenPosition: ", this.screenPosition,
                "\nmodule.sortOrderPriority: ", this.module.sortOrderPriority, "\nmodule.renderOrderPriority: ", this.module.renderOrderPriority, "\nsortingLayer: ", this.sortingLayer, "\nsortingOrder: ", this.sortingOrder
            };
            return string.Concat(objArray1);
        }
    }

Usage Example

Esempio n. 1
0
 static int ToString(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.EventSystems.RaycastResult obj = (UnityEngine.EventSystems.RaycastResult)ToLua.CheckObject(L, 1, typeof(UnityEngine.EventSystems.RaycastResult));
         string o = obj.ToString();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
RaycastResult