大约有 1,655 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
Laya_社区(676) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya3.0_文档(71) Laya_示例(58) Laya2.0_示例(54)
....WebGL; public class ComponentDemo { //按钮资源路径 private var skin:String = "./res/img/btn_test.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载...
来源: Laya2.0_文档 发布时间: 20210715
...的链接 提交 2 个回复 LayaAir大为 赞同来自: @property({type: String, displayName: "字体名称", default: "宋体",isAsset: true, inspector: "Font"}) 您好,这个装饰器可以实现您需要的效果 2025-09-16 0 1 分享 微博 QZONE 微信 LayaAir大为 赞同来自: 您可以...
来源: Laya_社区 发布时间: 20250910
...等于设计宽高。*/ public static const SCALE_EXACTFIT:String = "exactfit"; 2018-08-06 0 6 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: http://ldc.layabox.com/doc/?nav=zh-as-1-8-3 这篇文档有详解,相信看过之后对这一系列适配模式都有较好的了解...
来源: Laya_社区 发布时间: 20180806
...yUrl("ws://127.0.0.1:9000");//建立连接; } } public function send(msg:String):void { if(this.socket.connected){ var byte:Byte = new Byte(); byte.writeUTFString(msg); this.socket.send(byte.buffer); } } private function openHandler(event:Object = null):void { //正确建立连接; trace("openHa...
来源: Laya_社区 发布时间: 20180202
...连接服务器 客户端代码: let PORT: number = 8080; let IP: string = "127.0.0.1"; export class NetSocket extends Laya.Socket{ private static _instance: NetSocket; public static get instance(): NetSocket { if (!NetSocket._instance) { ...
来源: Laya_社区 发布时间: 20170602
...者自行定义。设置名称后可以通过IK组件上的getChain(name: string)方法获取对应的Chain。如果未设置,则默认使用end节点的name。 Type:类型。有position和lookAt两种。 position:位置模式。在此模式下,链的末端节点会尽可能到达设置...
来源: Laya3.0_文档 发布时间: 20260131
...oneTo(destObject:*):void[override] 克隆。 PBRSpecularMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods...
来源: Laya2.0_api 发布时间: 20190513
...oneTo(destObject:*):void[override] 克隆。 PBRStandardMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods...
来源: Laya2.0_api 发布时间: 20190513
...ayaair.so (laya::JCAudioWavPlayer::playAudio(laya::JCAudioInterface*, std::string const&, bool)+184) [arm64-v8a] 3 #02 pc 000000000044d4b4 /data/app/com.mylafe.game.handsomecat-1/lib/arm64/liblayaair.so (laya::JSAudio::play()+164) [arm64-v8a] 4 #03 pc 000000000044dd74 /data/app/com.mylafe.game...
来源: Laya_社区 发布时间: 20191227
...有三个文件,一个是src/Functions.ts,内容为function hello(): string { return 'Hello World!'; } 一个是src/Library/ToolService.ts, 内容为module Library{ export class ToolService{ constructor(){ } public static sum(a:number, b:number):number { return a + b; } } } 一个是 src/Libr...
来源: Laya_社区 发布时间: 20181214