Beam
闪电特效(光束)
create
function Beam.create(data: Beam.CreateData)
-> Beamcreate_lua_beam_by_py
function Beam.create_lua_beam_by_py(py_beam: py.LinkSfx)
-> beam: Beamhandle
py.LinkSfx链接特效
remove
(method) Beam:remove()链接特效 - 销毁
set
(method) Beam:set(data: Beam.LinkData)链接特效 - 设置位置
show
(method) Beam:show(is_show: boolean)@param is_show — 是否显示
链接特效 - 显示/隐藏
type
stringBeam.CreateData
follow_scale
boolean是否跟随缩放(只在起点是单位时生效)
immediate
boolean销毁时,是否有过度
key
py.SfxKey特效id
source
Point|Unit目标
source_height
number高度(只在目标是点时生效)
source_socket
string挂接点(只在目标是单位时生效)
target
Point|Unit目标
target_height
number高度(只在目标是点时生效)
target_socket
string挂接点(只在目标是单位时生效)
time
number存在时间
Beam.LinkData
height
number高度(只在目标是点时生效)
point_type
y3.Const.LinkSfxPointType起点or终点
socket
string挂接点(只在目标是单位时生效)
target
Point|Unit目标

