大约有 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)
...仿生兽 */ export class Physics_Strandbeests { Main: typeof Main = null; private scale = 2.5; private pos: Array = [500, 400]; private m_offset: Array = [0, -80 * this.scale]; private pivot: Array = [0, 8 * this.scale]; private wheel: Sprite; private chassis: Sprite; private motorJoint: RevoluteJo...
来源: Laya2.0_示例 发布时间: 20241124
...his, this.onBtnClick); this.btn2.on(Laya.CLICK, this, this.onBtn2Click); } private onBtnClick(): void { //手动控制组件属性 this.radio.selectedIndex = 1; this.clip.index = 8; this.tab.selectedIndex = 2; this.combobox.selectedIndex = 0; this.check.selected = true; } private onBtn2Click(): void...
来源: Laya_示例 发布时间: 20241124
...his, this.onBtnClick); this.btn2.on(Laya.CLICK, this, this.onBtn2Click); } private onBtnClick(): void { //手动控制组件属性 this.radio.selectedIndex = 1; this.clip.index = 8; this.tab.selectedIndex = 2; this.combobox.selectedIndex = 0; this.check.selected = true; } private onBtn2Click(): void...
来源: Laya2.0_示例 发布时间: 20200319
...一个Socket实例,声明一个Byte实例: ```typescript class Game { private socket: Laya.Socket; private byte: Laya.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this....
来源: Laya2.0_文档 发布时间: 20210714
...如下: const { regClass, property } = Laya; @regClass() class Animal { private _weight: number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } set weight(value: number) { this._weight = value; } } 2.3 是否序列化保存 通过装饰器定义为组件属性后...
来源: Laya3.0_文档 发布时间: 20241014
...cket; import laya.utils.Byte; import laya.webgl.WebGL; public class Game { private var socket:Socket; private var byte:Byte; public function Game() { //初始化引擎 Laya.init(600, 400,WebGL);// this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket...
来源: Laya2.0_文档 发布时间: 20210715
...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createLabel("只允许输入数字:").pos(50, 20); var input: Input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入字母:").pos(50, 10...
来源: Laya_示例 发布时间: 20241124
...anager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } private init() { } private skins: Ar...
来源: Laya_社区 发布时间: 20171124
... 怎么把攻击 开火 合起来播放 // 程序入口 class GameMain { private roleAni: Laya.Animation; private timeLine:Laya.TimeLine = new Laya.TimeLine(); constructor() { //初始化舞台 Laya.init(1334, 750, Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画...
来源: Laya_社区 发布时间: 20171228
...on 赞同来自: 结贴了 sky1989chen :已解决。 SaveClipRect类中:private static var _cache:* =/*[STATIC SAFE]*/ SaveBase._createArray(); SaveTransform类中:private static var _no:* =/*[STATIC SAFE]*/ SaveBase._createArray(); SaveClipRectStencil类中:private static var _cache:* =/*[ST...
来源: Laya_社区 发布时间: 20180226