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

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

941. laya.d3.core.particleShuriKen.module.shape.ConeShape [ 82%]

...ndBox:BoundBox):void[override] ConeShapeProperty Detailanglepropertypublic var angle:Number发射角度。emitTypeproperty public var emitType:int发射类型,0为Base,1为BaseShell,2为Volume,3为VolumeShell。lengthproperty public var length:Number椎体长度。radiusproperty public var radius...

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

942. UI-Slider [ 82%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var skins: Array = []; skins.push("res/ui/hslider.png", "res/ui/hslider$bar.png"); skins.push("res/ui/vslider.png", "res/ui/vslider$bar.png"); Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } private onLo...

来源: Laya2.0_示例 发布时间: 20241001

943. BlurFilter的strength属性设置到5以上就没效果了 [ 82%]

...效果?   public static function getScreenshot(bl:int=15):Sprite{    var htmlC:HTMLCanvas =_self.drawToCanvas(1334,750,0,0);    var _texture:Texture = new Texture(htmlC);    var sp2:Sprite = new Sprite();    sp2.graphics.drawTexture(_texture,0,0,1334,750);    var blurFilter:BlurFil...

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

944. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 82%]

...ort mx.core.UIComponent;                          public var cabId:int = 0;             public var U:int = 42;             public var frameFace:int = 1;                          public function add(child:UIComponent):void             { ...

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

945. 3d粒子只要勾了looping,每次播放完开始下一次循环的时候都会闪烁一下 [ 82%]

...两段代码,会有啥问题? 177*****022 • 2019-12-13 19:42 @NilZ: var scene3d = new Laya.Scene3D(); Laya.stage.addChild(scene3d); var camera = new Laya.Camera(0, 0.1, 1000); scene3d.addChild(camera); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), false, false); camera.transform.transla...

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

946. 报错,这不是个构造函数 "StartPage is not a constructor" [ 82%]

...tartPage is not a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ ...

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

947. 刚体贴图调用问题 [ 82%]

...通过刚体和贴图间的联系来实现。 for(let i=0;i <5; i++){ var bodyA = Matter.Bodies.circle(bodyLocationArr[i].x, bodyLocationArr[i].y, 50,Options); this.boxBody = []; this.boxBody.push(bodyA); var img1 = new Laya.Sprite(); img1.loadImage("../xxxx.png",0,0,100,100); var img2 = new Laya...

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

948. 一个简单的跑酷曲面shader分享 [ 82%]

...is.yoffset = -15.0; this.zdistance = 200.0; } public static initShader() { var attributeMap: object = { "a_Position": Laya.VertexMesh.MESH_POSITION0, "a_Normal": Laya.VertexMesh.MESH_NORMAL0, "a_Textcoord": Laya.VertexMesh.MESH_TEXTURECOORDINATE0, "a_Textcorrd1": Laya.VertexMesh.MESH_TEXTURECOORDINA...

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

949. ToolTip鼠标悬停的使用 [ 82%]

...ya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#e...

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

950. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 82%]

...浮点数据 this.byte.writeUTFString("hello");// 写入一个字符串; var by = new Laya.Byte();//这里声明一个临时Byte类型 by.endian = Laya.Byte.LITTLE_ENDIAN;//设置endian; by.writeInt32(5000);//写入一个int32数据 by.writeUint16(16);//写入一个uint16 数据 this.byte.writeA...

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