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

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

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

....height); })); Laya.stage.addChild(sp); ``` ​ loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 3. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png", Handler.create(this, function() {     var texture:Texture = Laya.loader.g...

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

172. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 52%]

...h,sp.height); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png",Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.p...

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

173. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...在创建之前已经载入。所以这里使用了一个IEditor.onLoad的回调用于提前载入资源。 2、设置字段的inspector属性为刚才取的名字,这里为MyTestField @Laya.regClass() export class Script extends Laya.Script { @property({ type : Laya.Node, inspector: "MyTestField"...

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

174. laya.net.Loader [ 51%]

...ead-only] 返回的数据。Loader  maxTimeOut : int = 100[static] 每帧回调最大超时时间,如果超时,则下帧再处理。Loader  parserMap : Object[static] 资源解析函数对应表,用来扩展更多类型的资源加载解析。Loader  type : String[read-only] 加载类型...

来源: laya_api 发布时间: 20170929

175. laya.ui.Radio_API3.0 [ 51%]

...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Implementation of ISelect.contains Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 P...

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

176. laya.ui.Clip_API3.0 [ 51%]

...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指定的 Node...

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

177. laya.display.Stage_API3.0 [ 50%]

...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指定的 Node...

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

178. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 50%]

...h,sp.height); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```typescript Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monk...

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

179. laya.ui.ColorPicker_API3.0 [ 50%]

...ler(this, onChangeColor,[colorPicket]);//设置 colorPicket 的颜色改变回调函数。 Laya.stage.addChild(colorPicket);//将此 colorPicket 对象添加到显示列表。 } private function onChangeColor(colorPicket:ColorPicker):void { trace("当前选择的颜色: " + colorPicket.selectedCol...

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

180. laya.d3.core.scene.Scene3D_API3.0 [ 50%]

...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指定的 Node...

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