大约有 1,204 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0053 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100);...
来源: Laya2.0_示例 发布时间: 20241124
...aya.utils.Handler; /** * ... * @author OttoChen */ public class TestMain { private var txt:Text = null; public function TestMain() { Laya.init(800, 800); txt = new Text(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSi...
来源: Laya_社区 发布时间: 20180227
... Laya.timer.frameLoop(1,this,this.onFrameLoop); } private onFrameLoop():void{ console.log("delta:",Laya.timer.delta); } private onFocus(): void { console.log("onFocus:"); } private onBlur(): void { ...
来源: Laya_社区 发布时间: 20180724
...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createText('left', 1, null, 100, 10); this.createText('center', 2, "#00BFFF", 155, 150); this.createText('right', 3, "#FF7F50", 210, 290); } private createText(align: string, underlineWidth:...
来源: Laya2.0_示例 发布时间: 20241124
...rop {name:targetEffect, tips:"UI特效", type:ENUM_Effect, default:null}*/ private targetEffect:ENUM_Effect = null; //这样写实不行的 /** @prop {name:targetEffect, tips:"UI特效", type:Option, option:ENUM_Effect, default:null}*/ private targetEffect:ENUM_Effect = null; //这样也是不行...
来源: Laya_社区 发布时间: 20191029
...perty({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; // 平移距离 private translate: Laya.Vector3 = new Laya.Vector3(1, 1, 1); constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { // 平移c...
来源: Laya3.0_文档 发布时间: 20241014
...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite = this.createChar...
来源: Laya_示例 发布时间: 20241124
... flash.text.TextFieldAutoSize; public class Shake_A_Shake extends Sprite { private var acc1:Accelerometer; private var oldAccX:Number; private var oldAccY:Number; private var oldAccZ:Number; private var sum:Number; private var txt:TextField; public function Shake_A_Shake() { this.addChild(txt=new Te...
来源: Laya_社区 发布时间: 20160110
...mg/3.png) (图3) 下面演示获取旋转方位信息: ```typescript private var info:Text; public function Gyroscope_Sample() { Laya.init(550, 400); info = new Text(); info.fontSize = 50; info.color = "#FFFFFF"; info.size(Laya.stage.width, Laya.stage.height); ...
来源: Laya2.0_文档 发布时间: 20210714
... 2018-05-29 0 0 分享 微博 QZONE 微信 苍蝇也是鸟 赞同来自: private var i:int; private var ani_planet:MovieClip; private function onBtnClick(e:Event):void { ani_planet = new MovieClip(); ani_planet.pivotY = ...
来源: Laya_社区 发布时间: 20180529