- 博客(13)
- 收藏
- 关注
原创 linux进程地址空间
目录 结构示意图:一个C程序组成:发生段错误的例子:结构示意图: ]$ size XXX text data bss dec hex filename17540970 32112 1606136 19179218 124a6d2 XXX text是放...
2018-08-19 21:27:26 299
原创 linux scp
scp local_file remote_username@remote_ip:remote_folder scp local_file remote_username@remote_ip:remote_file 或者 scp local_file remote_ip:remote_folder scp local_file remote_ip:remote_file 没...
2018-08-18 21:45:11 463
转载 GDB查看指定内存地址处的内容
命令格式:x/nfu <addr>如:(gdb)x/1xb 0x7fffffffd708 x : examine 的缩写 n : 表示要显示的内存单元个数f : 表示显示方式, 可取如下值x 按十六进制格式显示变量。d 按十进制格式显示变量。u 按十进制格式显示无符号整型。o 按八进制格式显示变量。t 按二进制格式显示变量。a 按十六进...
2018-08-17 23:39:50 12349
原创 ToLua# Example UseList
没什么说的直接上代码using UnityEngine;using System.Collections;using LuaInterface;using System.Collections.Generic;using System;//需要导出委托类型如下://System.Predicate<int>//System.Action<int>//S...
2018-08-07 20:56:22 759
原创 ToLua# Example 18 TestABLoader
目录 代码全部怎么运行容我猜猜 代码全部:using UnityEngine;using System.Collections;using System.Collections.Generic;using System.IO;using LuaInterface;using System;//click Lua/Build lua bundlepu...
2018-08-07 17:23:21 371 1
原创 ToLua Example 17 TestInherit
using UnityEngine;using System.Collections;using LuaInterface; public class TestInherit : MonoBehaviour{ private string script = @" LuaTransform = { ...
2018-08-06 23:46:38 302
原创 Tolua Example 16 TestInt64
string script = @" function TestInt64(x) x = 789 + x assert(tostring(x) == '9223372036854775807') ...
2018-08-06 17:11:27 1035
原创 PB例子学习
syntax = "proto2";message Article { required int32 article_id = 1; optional string article_excerpt = 2; repeated string article_picture = 3; optional int32 article_pagecount...
2018-08-06 14:31:53 1663
原创 ToLua Example 14 TestOutArg 访问在c#中带out的函数 位运算
Lua脚本: Physics.Raycast介绍: Raycast参数不一样,四个参数的就有两种public static bool Raycast(Ray ray, RaycastHit hitInfo, float distance, int layerMask);public static bool Raycast(Ray ray, float distan...
2018-08-06 00:07:18 483
原创 BuildAssetBundle 读一读 看看热闹
目录打包是干什么的?Step 1:Step 2:Step 3:Step 4:Step 5:Step 6:Step 7:路径总结:BuildAssetBundles这个函数的解释:打包是干什么的?在Unity3D开发的游戏中,无论模型,音频,还是图片等,我们都做成Prefab,然后打包成Assetbundle,方便我们后面的使用,来达到资源的更新。...
2018-08-05 22:11:17 1623
转载 EditorUtility.OpenFilePanel 打开文件面板
static function OpenFilePanel (title : string, directory : string, extension : string) : stringDescription描述Displays the "open file" dialog and returns the selected path name.显示“open file”...
2018-08-04 14:12:16 3244
原创 C# IEnumerator yield 浅析
先看一个很简单的例子:using System;using System.Collections.Generic; namespace ConsoleApplication4{ class Program { //一个返回类型为IEnumerable<int>,其中包含三个yield return public...
2018-08-01 21:57:31 1714
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人