Xavier Wang

Results 130 comments of Xavier Wang

因为用这个库的很多人是在Unity里用的,他们不知道当前目录的概念,解释起来太麻烦,所以干脆在文档里删掉了所有文件相关的API,会用的人肯定知道怎么用。 你可以用io.open()读取你的.pb文件内容,然后用pb.load()载入

最好当然是上来就load,然后就不动了

考虑一下pb.state(),unsafe里面有shared state的支持。

检查你的message是不是被截断了

Thanks for contribution! you could just send a Pull Request for me, and I'll be very happy to merge it!

This commit fix a encode bug, if you need default message, use option "decode_default_message"

这个函数不会返回nil,只有可能是空表。

Maybe you could only add encode/decode/load to State objects. But we need think twice to decide whether to merge it.

you can try to do this: - first, render your ready-to-clipped-graph to a FBO texture. - then, using this FBO texture as `nvgImagePattern`, and draw the clip path. now the...

Yes, image pattern has alpha channel, and you can specify both pattern alpha and global alpha. you can render the clipped-graph first, then draw clipping path's paint on the top...