Skip to main content
View All
Search
Shelves
Books
Log in
Info
Content
Books
关于 UdonSharp 你不得不知道的 {...
你应该知道:你的缺陷
不要 public 你的内部实现方法,如果你...
不要 public 你的内部实现方法,如果你不得不 public,请在方法名加入 _ 作为前缀
public 方法会被导出到符号表,这可能会产生(微乎其微的)性能影响。
public 方法默认可以被网络 RPC 或者 SendCustomEvent() 调用,如果你不想有奇怪的脚本或者破解客户端瞎搞,请避免 public。
如果你不得不 public(比如说给其他脚本使用的公开 API),请加 _ 作为方法名称前缀。
Enter section select mode
Previous
在你正式开始网络同步之前——你最好知道的一些事
Next
实验性药剂
0 Comment Threads
0 Archived
No comments to display
No comments to display
Back to top
No comments to display
No comments to display