• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 567 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0072 秒)

81. laya.ui.Box [ 78%]

...ods | Events Packagelaya.uiClasspublic class BoxInheritanceBox Component Sprite Node EventDispatcher ObjectImplements IBoxSubclasses LayoutBox, List, Panel, Tree, UIGroup, View, ViewStack Box 类是一个控件容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Pr...

来源: laya_api 发布时间: 20170929

82. drawToTexture 绘制函数不工作呢 [ 78%]

...awToTexture 绘制函数不工作呢           let top_rect: Laya.Sprite = new Laya.Sprite();         top_rect.x = 0;         top_rect.y = 0;         top_rect.size(100, 100);         top_rect.graphics.drawRect(0, 0, 100, 100, "#0000FF", "#000000", 1);    ...

来源: Laya_社区 发布时间: 20190730

83. 创建多个Sprite对象后,再次取出来的时候坐标全为0,0高宽跟创建时的也不一样 [ 78%]

创建多个Sprite对象后,再次取出来的时候坐标全为0,0高宽跟创建时的也不一样 在创建的不同位置的Sprite并设置了不同坐标以及相同大小之后,再次根据getChildByName()获取出来时x,y坐标居然是0,0而且高度跟宽度也会变化很多,请问...

来源: Laya_社区 发布时间: 20180427

84. laya.display.FrameAnimation [ 78%]

...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

85. shader 问题[关闭] [ 78%]

...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

86. 3d场景下面有张2d的图片,当鼠标焦点不在该网页时,2d图片为啥会闪动 [ 78%]

...如下     /////////////左右两张背景图             var sprite0:Sprite = new Sprite();             sprite0.loadImage("creatRoom/background_bk.png");             sprite0.pos(0,0 );             sprite0.cacheAsBitmap = true;             Laya.stage.ad...

来源: Laya_社区 发布时间: 20170314

87. laya.ui.VBox [ 78%]

...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

88. laya.ui.TipManager [ 78%]

...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

89. image.skin = base64 无效 [ 78%]

...们的测试代码,运行没有问题 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

90. 加上size设置后,精灵不能点击. [ 78%]

...行代码注释掉就正常了. 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