大约有 1,204 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0054 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...rty } = Laya; @regClass() export class UI_RadioGroup extends Laya.Script { private SPACING: number = 150; private X_OFFSET: number = 200; private Y_OFFSET: number = 80; private skins: any[]; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此...
来源: Laya3.0_文档 发布时间: 20241014
...y.Sprite; import laya.utils.Browser; public class Main { //二维码对象 private var qrcode:Object; private var qrcodeSp:Sprite; public function Main() { //初始化引擎 Laya.init(600, 400); var div:Object = Browser.document.createElement("div"); qrcode= new Browser.window.QRCode(div,{ width : 1...
来源: Laya2.0_文档 发布时间: 20210715
...ength; ++i) { output.writeByte(message.charCodeAt(i)); } socket.flush(); } private function onSocketClose(e:*=null):void { trace("Socket closed"); } private function onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if (message is...
来源: Laya_示例 发布时间: 20241124
... public class Sprite_DrawShapes { private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300); drawSomething(); } ...
来源: Laya2.0_文档 发布时间: 20210715
...ss, property } = Laya; @regClass() export class Main extends Laya.Script { private mCurrIndex: number = 0; private mArmature: Laya.Skeleton; onStart() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loader.load("skeleton/Dragon/Dragon.sk").then((templet: Laya.Templet) => { //...
来源: Laya3.0_文档 发布时间: 20230303
...r = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = St...
来源: Laya2.0_文档 发布时间: 20210715
...dler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_TextArea { private skin: string = "../../res/ui/textarea.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.st...
来源: Laya_示例 发布时间: 20241124
...ya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { Laya.init(500, 300, WebGL); this.drawSomething(); } private dr...
来源: Laya2.0_文档 发布时间: 20210715
...ber = 0.04; /*3D摄像机*/ public camera:Laya.Camera; /*摇杆控制器*/ private rocker:RockerView; /*攻击按钮控制器*/ private attack:attackView; /*摇杆上一帧角度*/ private lastAngle:number = 0; /*检测移动区碰撞器的射线*/ private ray:Laya.Ray; /*碰撞检测信息*/ privat...
来源: Laya_社区 发布时间: 20171113
不规则图形遮罩 显示出来的内容与画的遮罩图形不相同 private var px:int = 200; private var py:int = 500; private var maskSPArr:Array = [["moveTo", px+0, py+0], ["lineTo", px+100, py+0], ["lineTo", px+100, py+20], ["lineTo", px+200, py+20], ["lineTo",...
来源: Laya_社区 发布时间: 20161116