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

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

3131. HtmlDivElement添加下划线效果不对 [ 53%]

...题,目前htmlDivElement不支持下划线,需要用超链接替代! var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML="<span style='font-weight:bold;" + "font:24px Arial' " + "color='red' " + "href='http://ask.layabox.com/www.baidu.com'>" + "哈哈哈哈</span><span&gt...

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

3132. Text 居中 搭配 Tween 显示结果有问题。 [ 53%]

Text 居中 搭配 Tween 显示结果有问题。 var txt = new Laya.Text(); txt.text = "做个测试"; txt.x = 0; txt.y = 0; txt.color = "#FFFFFF"; txt.fontSize = 12; txt.width = 800; txt.height = 600; txt.align = "center"; txt.valign = "middle"; Laya.stage.addChild(txt); Laya.Tween.to(txt, { scal...

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

3133. as3 寻路demo [ 53%]

...同来自: 请问一下,代码里面的地图数据是怎么得到的? var mapStr:String ="8,0,1,0,0,35,15,35,91,2287,0,1,1,12,0,1,1,21,0,2,1,4,0,3,1,4,0,2,1,19,0,19,1,17,0,22,1,12,0,23,1,12,0,23,1,10,0,25,1,10,0,25,1,9,0,26,1,10,0,25,1,10,0,15,1,1,0,7,1,12,0,15,1,2,0,5,1,13,0,10,1,1,0,4,1,5,0,1,1...

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

3134. Panel的滚动条皮肤问题 [ 53%]

...一张图是原图  (ui库版本为 LayaAir 1.7.2)  // panel容器 var panel; Laya.loader.load(["images/scrollbar.png","images/scrollbar$bar.png"], Laya.Handler.create(this, panelContent)); function panelContent() { panel = new _this.Panel(); panel.size(1081, 507); panel.pos(153, 141); panel.z...

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

3135. laya.ui.ComboBox [ 53%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精...

来源: laya_api 发布时间: 20170929

3136. 对于使用spine切换动作后显示异常解决方法 [ 53%]

对于使用spine切换动作后显示异常解决方法 例: var catSprite:Skeleton = new Skeleton(); this.catSprite.load(xxx,回调)--加载好使用spine或dragbones的文件 private function 回调(){ catSprite.showSkinByName("动作名") //最初使用这种方式显示 结果是图片乱跳...

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

3137. 3D骨骼动画卡在某一帧不再执行动作 [ 53%]

... 以下为核心代码:   function playAction(act:string):void {     var animationclip:Laya.AnimationClip = this.animator.getClip(action);     if(animationclip){        this.animator.play(act);    } }   现象描述:角色正在挂机放技能打怪,当挂机时间过长后,角...

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

3138. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 53%]

...ullingMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 麒麟子添加 var allLights = []; allLights = allLights.concat(scene._directionLights._elements); ...

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

3139. 加载html的问题 [ 53%]

加载html的问题 加载html文件: var p = new laya.html.dom.HTMLIframeElement(); Laya.stage.addChild(p); p.width = screenWidth; p.height = screenHeight; p.href = "https://www.baidu.com/index.html"; 这样写怎么报错了:gameThirdScriptError undefined;at api request success callback funct...

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

3140. 设置半透遮罩层后,无法屏蔽穿透点击事件 [ 53%]

...理方式如下: // 绘制遮罩区,含透明度,可见游戏背景 var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.mouseThrough = false; Laya.stage.addChild(maskArea); 2018-09-11 ...

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