大约有 823 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
Laya_社区(401) Laya3.0_api(156) laya_api(107) Laya2.0_api(97) Laya3.0_文档(30) Laya2.0_文档(29) Laya2.0_示例(2) Laya_示例(1)
...ntDispatcher.ts:21 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 Parameters type: string 事件的类型。 Returns boolean 如果指定类型的侦听器已注册,则值为 true;否则,值为 false。 isAncestorOf isAncestorOf(node: Node): boolean Inherit...
来源: Laya3.0_api 发布时间: 20231102
...字体的时候没有考虑到上下padding,造成如果设位图字体注册点为正中心的时候,实际会存在上下偏移。但在渲染文字的时候并不需要将padding算在文字的长宽里面,如果这样做,会造成出来的字间距随着padding的增加变得格外的大...
来源: Laya_社区 发布时间: 20161219
...167)报错? 请问object层中添加的sprite怎么添加点击事件 注册函数里面 事件侦听函数的执行域 的详解 如何定义动画播放过某帧后的回调函数 请问LayaFlash是否考虑开源? 问题状态 最新活动: 2017-11-17 19:11 浏览: 984 关注: 3 人 137****...
来源: Laya_社区 发布时间: 20171117
...用`Geolocation.clearWatch()`并传入该ID值来取消由`watchPosition()`注册的位置监听器。 ```typescript // Geolocation.watchPosition函数签名 Geolocation.watchPosition( Handler.create(this, updatePosition), Handler.create(this, onError)); function updatePosition(info:GeolocationInfo)...
来源: Laya2.0_文档 发布时间: 20210715
...用`Geolocation.clearWatch()`并传入该ID值来取消由`watchPosition()`注册的位置监听器。 ```typescript // Geolocation.watchPosition函数签名 Geolocation.watchPosition( Handler.create(this, updatePosition), Handler.create(this, onError)); function updatePosition(info:GeolocationInfo)...
来源: Laya2.0_文档 发布时间: 20210715
...景,加了个text当标题,加了版权信息,并且为版权信息注册了个匿名函数,点击会跳转到我的个人网站。// 设定背景 var background = new Laya.Sprite(); background.loadImage("linkgame_back.jpg"); background.cacheAsBitmap = true; Laya.stage.addChild(background); ...
来源: Laya_社区 发布时间: 20160623
...用`Geolocation.clearWatch()`并传入该ID值来取消由`watchPosition()`注册的位置监听器。 ```typescript // Geolocation.watchPosition函数签名 Geolocation.watchPosition( Handler.create(this, updatePosition), Handler.create(this, onError)); function updatePosition(info:GeolocationInfo)...
来源: Laya2.0_文档 发布时间: 20210714
...程,如下图所示: 并在微信Worker线程的onMessage回调中注册为MiniWorkerLoader的workerMessage,在回调中我们需要将网络图片下载后的本地缓存地址传入给创建好的nativeImage中,并派发完成事件;在这一步中我们也将图片的缓存地址写...
来源: Laya3.0_文档 发布时间: 20251010
...aya.Shader3D.PERIOD_SPRITE, 'u_WorldMat': Laya.Shader3D.PERIOD_SPRITE }; //注册CustomShader var customShader = Laya.Shader3D.add("CustomShader"); //创建一个SubShader var subShader = new Laya.SubShader(attributeMap, uniformMap); //我们的自定义shader customShader中添加我们新创建的...
来源: Laya2.0_文档 发布时间: 20210715
...ntDispatcher.ts:21 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 Parameters type: string 事件的类型。 Returns boolean 如果指定类型的侦听器已注册,则值为 true;否则,值为 false。 isAncestorOf isAncestorOf(node: Node): boolean Inherit...
来源: Laya3.0_api 发布时间: 20231115