大约有 959 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0085 秒)
...处理类。 Public Properties PropertyDefined By bitmap : Texture2D 获取位图。 Texture destroyed : Boolean[read-only] 获取是否已经销毁。 Texture height : Number 实际高度。Texture offsetX : Number = 0沿 X 轴偏移量。Texture offsetY : Number = 0沿 Y 轴偏移...
来源: Laya2.0_api 发布时间: 20190513
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cache...
来源: laya_api 发布时间: 20170929
...string Inherited from Resource.url Defined in laya/resource/Resource.ts:99 获取资源的URL地址。 uuid uuid: string Inherited from Resource.uuid Defined in laya/resource/Resource.ts:101 获取资源的UUID。 Static DEBUG DEBUG: boolean = false Inherited from Resource.DEBUG Defined in laya/reso...
来源: Laya3.0_api 发布时间: 20231102
...`的作用域为[-90, 90]。  (图3) 下面演示获取旋转方位信息: ```typescript Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this...
来源: Laya2.0_文档 发布时间: 20210714
...和服务器之间传输数据的功能。它提供了一个通过 URL 来获取数据的简单方式,并且不会使整个页面刷新。这使得网页只更新一部分页面而不会打扰到用户。 1,属性 属性 类型 描述 onreadystatechange function 一个JavaScript函数对象,...
来源: Laya3.0_文档 发布时间: 20250104
...otobuf.load("./protobuf.proto", (err, root) => { if (err) throw err; // 获取消息类型 const ChatMessage = root.lookupType("ChatMessage"); // 创建 WebSocket 服务器,并定义了8080端口,需要与客户端请求的端口保持一致 const wss = new WebSocket.Server({ port: 8080 }); w...
来源: Laya3.0_文档 发布时间: 20251010
2.0 beta UI Button无法获取 2.0 beta 版本创建的UI生成代码后,无法获取到Button组件。 生成后的代码: import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class AttackUI extends View { public btn_attack:Laya.Button; constr...
来源: Laya_社区 发布时间: 20180926
...。继续查看源码后,我发现 getRes 实际上是从 loadedMap 中获取资源,也就是说,getRes 只会从缓存中读取。 如果不使用 load ,那么 getRes 就无法获得图片,最终图片自然也无法正常显示。 那么我的问题是,能不能在回调的 Handler 中...
来源: Laya_社区 发布时间: 20170804
...lean): void Inherited from Node.active Defined in laya/display/Node.ts:655 获取自身是否激活。 Returns boolean 自身是否激活。 Inherited from Node.active Defined in laya/display/Node.ts:663 设置是否激活。 Parameters value: boolean 是否激活。 Returns void 自身是否激活...
来源: Laya3.0_api 发布时间: 20231115
...种子。 ShurikenParticleSystem colorOverLifetime : ColorOverLifetime 获取生命周期颜色,注意:如修改该值的某些属性,需重新赋值此属性才可生效。 ShurikenParticleSystem destroyed : Boolean[read-only] 获取是否已销毁。 GeometryFilter duration : Number粒子...
来源: laya_api 发布时间: 20170929