Skip to content

Commit 461fad0

Browse files
authored
Update README.md
1 parent 8005fa3 commit 461fad0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@
156156
> std::function<void(int, bool)> add2;
157157
> method->Cast(add2);
158158
>
159+
> UnityResolve::Variable<Vector3, Player> syncPos;
160+
> syncPos.Init(pClass->Get<UnityResolve::Field>("syncPos"));
161+
> auto pos = syncPos[playerInstance];
162+
> auto pos = syncPos.Get(playerInstance);
163+
>
159164
> ```
160165
161166
#### 转存储到文件 (DumpToFile)

0 commit comments

Comments
 (0)