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

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

711. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 63%]

...lor: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } Laya.sta...

来源: Laya2.0_文档 发布时间: 20210715

712. 分享:简单聊天室 [ 63%]

...rt ui.test.HtmlPageUI; public class HtmlView1 extends HtmlPageUI { private var str:String; private var str2:String; private var isSend:Boolean=false; public function HtmlView1() { super(); // 文本样式一 str="<span color='blue' style=' font" + ":18px 华文琥珀' href='http://ask.layabox.com...

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

713. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 63%]

...if(this.tsizex > this.osizex && this.tsizez > this.osizez) { var eat = new Laya.Vector3(0, 0.5, 0);//龙卷风方法直接上升 other.owner.transform.translate(eat,true,false); //0.1秒后删除 Laya.timer.once(100, null, Wipe); function Wipe() { console.log(other._owner); //移除自...

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

714. Tween动画中的Sprite点击事件失效 [ 63%]

...事件失效 Tween动画中的Sprite点击事件失效: 简单代码: var self = this; self.loserPrize.on(Laya.Event.MOUSE_DOWN,self,function(){     self.clickHanlder(); }) Laya.Tween.to(self.loserPrize, {      y: Laya.Browser.clientHeight }, Math.random() * 1500); self.gameZone.addChild(se...

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

715. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 63%]

...his, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //播放Animation动画 // tl.play(); //创建一个新的Animation实例 var tl2 = n...

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

716. laya.ui.Image [ 63%]

...果可以当作图片源,再次绘制到其他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

717. RopeJoint代码动态创建 无法设置otherbody等属性 [ 63%]

RopeJoint代码动态创建 无法设置otherbody等属性 var img:Sprite = new Sprite(); //加载显示图片,坐标位于100,50 img.loadImage("res/layabox.png"); img.x=(Laya.stage.width-256)/2; //添加到舞台 Laya.stage.addChild(img); var img2:Sprite = new Sprite(); //加载显示图片,...

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

718. 加载图片显示为黑屏(附代码),为什么? [ 63%]

...i.Panel; import laya.utils.Handler; public class LayaSample { private var rule_ct; public function LayaSample() { Laya.init(640, 1136, WebGL); Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.size(460, 704); rule_ct = new Sprite(); Laya....

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

719. laya.ui.Dialog [ 63%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...

来源: Laya2.0_api 发布时间: 20190513

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

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