• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 232 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)

21. laya.ui.ScrollBar [ 72%]

...,canvas模式下进行依然是画布缓存,webgl模式下使用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性...

来源: laya_api 发布时间: 20170929

22. laya.utils.Tween.to第一个参数可以是个label? [ 71%]

... * 缓动对象props属性到目标值。          * @param    target 目标对象(即将更改属性对象)。          * @param    props 变化属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplet...

来源: Laya_社区 发布时间: 20180425

23. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...Controll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标竖直高度参数 public distanceAway: number = 10;//相机与目标水平距离参数 public smooth: number = 2;//...

来源: Laya3.0_文档 发布时间: 20251010

24. laya.device.motion.Accelerator_API3.0 [ 69%]

....offAllCaller Defined in laya/events/EventDispatcher.ts:146 移除caller为target所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher...

来源: Laya3.0_api 发布时间: 20231115

25. laya.display.EffectAnimation [ 68%]

...,canvas模式下进行依然是画布缓存,webgl模式下使用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性...

来源: Laya2.0_api 发布时间: 20190513

26. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...2.6 删除指定作用域所有侦听 offAllCaller /** * 移除caller为target所有事件侦听 * @param caller caller对象 */ offAllCaller(caller: any) 用于从事件分发器对象中删除指定作用域所有侦听器。例如,uiBtn按钮注册了多个事件侦听,可以用of...

来源: Laya3.0_文档 发布时间: 20251010

27. 请问在2.0版本js中,如何获取mouse_move鼠标坐标 [ 66%]

...Event] game.js:116 touchId=0 game.js:116 type=mousemove game.js:116 currentTarget=[object Object] game.js:116 target=[object Object] game.js:116 setTo=function (type,currentTarget,target){ this.type=type; this.currentTarget=currentTarget; this.target=target; return this; } game.js:116 stopPropagatio...

来源: Laya_社区 发布时间: 20181031

28. 列表嵌套另外一个列表 [ 66%]

...f(e.type=="click") { //如果点击对象是button类型 if(e.target is Button) { if(HostData.gold>HostData.array[index].gold){ //我金币是否满足购买条件 HostEvent.I.event(HostEvent.LICKLOAD,["是否花费"+HostData.array[index].gold+"个金币购买该角...

来源: Laya_社区 发布时间: 20180522

29. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 66%]

...his object and will recursively check its child objects until it finds the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area does not meet the requirements, yo...

来源: Laya_社区 发布时间: 20250825

30. Chrome和layaAir调试,大部分点击事件没有反应了 [ 65%]

...hrome出现错误: Error processing launch: Error Could not attach to main target 游戏运行在chrome里面 听不见声音 TextInput重写onFocus和onBlur事件监听不到 救命!canvas定位后 点击区域偏移,求大大们解答 Animation如何加点击事件 求指点3d射线碰撞和UI...

来源: Laya_社区 发布时间: 20190211