Tabletop Simulator

Tabletop Simulator

评价数不足
LUASnaps
   
奖励
收藏
已收藏
取消收藏
Number of Players: 1, 2, 4
Assets: Scripting
文件大小
发表于
更新日期
40.818 KB
2018 年 4 月 21 日 上午 9:55
2018 年 4 月 22 日 上午 7:56
2 项改动说明 ( 查看 )

订阅以下载
LUASnaps

描述
This tool is for programatically creating grids and snap points.
It more or less mimics the built in snap points but gives you the option to automatically create a snap point grid through value input and also reference them later through their GUID with LUA.

The tool is made with assetbundles that mimic the behavior of snap points (by having a snap point on them). Control panel gives you all the controls you should need including interactability and visibility toggles.

tooltip:
ORIGIN - The initial starting point of the grid in X/Y/Z world coordinates.
OFFSET - Step offset per snap point, a value of X:2/Z:-2 will tile by increments of two starting from the top left corner.
AMOUNT - A: Amount of snap points - X: Amount per row - A: 35 X: 7 will give you a 7x5 grid.

Note that the tool doesn't set persistent values, for permanent un-interactability and invisibility between loads you need to set it on load.
5 条留言
SaltyO 2018 年 4 月 25 日 上午 5:29 
Laconic. Life.
ulia  [作者] 2018 年 4 月 25 日 上午 1:01 
Go ahead.
Conro 2018 年 4 月 24 日 下午 11:30 
Would it be okay to use part of your code to dynamically generate coordinates, if proper credit was given?
Phen 2018 年 4 月 23 日 下午 3:43 
Would be nice to have decimals in the input fields for origin and offset. Looks like I can input them but short fields cut off decimals
darleth 2018 年 4 月 22 日 上午 5:21 
Amazing...thanks a lot.