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

大约有 4,336 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0091 秒)

641. laya.net.HttpRequest [ 88%]

...否是鼠标事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦...

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

642. 屏幕适配-屏幕适配 [ 88%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var Image = Laya.Image; var WebGL = Laya.WebGL; //所有适配模式 var modes = ["noscale", "exactfit", "showall", ...

来源: Laya_示例 发布时间: 20241002

643. 文本-下划线 [ 88%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Text = Laya.Text; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH ...

来源: Laya_示例 发布时间: 20241002

644. laya.d3.core.RenderableSprite3D [ 88%]

...ponent3D 添加指定类型组件。 Sprite3D clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node clone():* 克隆。 Sprite3D cloneTo(destObject:*):void 克隆。 Sprite3D contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点...

来源: laya_api 发布时间: 20170929

645. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 88%]

...class Btn { private var _owner:Sprite; private var _isScal:Boolean; public function Btn() { trace("btn的附加类已经开始执行"); } //设置owner函数,可以直接获取到Button组件的实例 public function set owner(v:Sprite):void { _owner = v; //由于时序问题,我们需要在此...

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

646. laya.resource.AtlasResource_API3.0 [ 88%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

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

647. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 88%]

...属性值,可以使用局部变量来保存它: ```javascript private function foo():void {     var prop = target.prop;     // 使用prop     process1(prop);     process2(prop);     process3(prop); } ``` ### 二、计时器 ​ LayaAir提供两种计时器循环来执行...

来源: Laya2.0_文档 发布时间: 20210715

648. list里面可以加入多个view吗? [ 88%]

...ya.utils.Handler; public class LayaAirDemo { private var list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { lis...

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

649. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 88%]

...; [workder 支持的函数](https://developer.mozilla.org/En/DOM/Worker/Functions_available_to_workers) 页面提供了一个 worker 支持的全局函数列表。开发者可以自己看下相应的方法。 ####方法概述 ##### 构造函数Worker() ​ 该构造函数创建一个 web worker,...

来源: Laya2.0_文档 发布时间: 20210715

650. laya.d3.component.animator.AnimatorController_API3.0 [ 88%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

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