大约有 568 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0061 秒)
Laya_社区(298) Laya3.0_api(62) Laya2.0_api(58) laya_api(54) Laya2.0_示例(31) Laya_示例(30) Laya2.0_文档(22) Laya3.0_文档(13)
...sspublic class FrameAnimationInheritanceFrameAnimation AnimationPlayerBase Sprite Node EventDispatcher ObjectSubclasses EffectAnimation 关键帧动画播放类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值...
来源: laya_api 发布时间: 20170929
...Packagelaya.uiClasspublic class TipManagerInheritanceTipManager Component Sprite Node EventDispatcher Object鼠标提示管理类Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示不透...
来源: laya_api 发布时间: 20170929
...ackagelaya.uiClasspublic class VBoxInheritanceVBox LayoutBox Box Component Sprite Node EventDispatcher Object VBox 是一个垂直布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align : String 子对象对齐方式。LayoutB...
来源: laya_api 发布时间: 20170929
...如下 /////////////左右两张背景图 var sprite0:Sprite = new Sprite(); sprite0.loadImage("creatRoom/background_bk.png"); sprite0.pos(0,0 ); sprite0.cacheAsBitmap = true; Laya.stage.ad...
来源: Laya_社区 发布时间: 20170314
...a.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } } sprite.customRender = function (context, x, y) { context.ctx.setIBVB(x, y, this.iBuffer, this.vBuffer, this.iNum, null, this.customeShader, this.shaderValue, 0, 0) } 1.如果我要 动态的,比如随时间...
来源: Laya_社区 发布时间: 20180313
...00,100,null,"#000000",2) 效果: 代码: var sp:Sprite = new Sprite(); this.addChild(sp); sp.pos(200, 200); sp.graphics.drawRect(0, 0, 200, 200, "#ff0000", "#000000", 2); 附件 : --> 2018-05-10 添加评论...
来源: Laya_社区 发布时间: 20180510
...ackagelaya.uiClasspublic class HBoxInheritanceHBox LayoutBox Box Component Sprite Node EventDispatcher Object HBox 是一个水平布局容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align : String 子对象对齐方式。LayoutB...
来源: laya_api 发布时间: 20170929
Event触发不了 var btn:Sprite = new Sprite(); login.addChild(btn); btn.graphics.drawRect(100, 200, 50, 50, "#000"); btn.pos(100, 200); btn.size(50,50); btn.on(Event.MOUSE_DOWN, this, function():void {console.log(1);}); btn.on换成Laya.stage.on是可以触发的,但是btn却触发不了。 麻...
来源: Laya_社区 发布时间: 20170525
...们的测试代码,运行没有问题 package core { import laya.display.Sprite; import laya.resource.HTMLCanvas; import laya.ui.Image; /** * ... * @author ww */ public class TestBase64Img { public function TestBase64Img() { Laya.init(1000, 900); testDraw(); } public function testDraw():void { var...
来源: Laya_社区 发布时间: 20170417
...行代码注释掉就正常了. function createImg(){ var img = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" img.loadImage(s); img.on(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.s...
来源: Laya_社区 发布时间: 20180412