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

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

821. laya.d3.component.AnimatorState [ 84%]

...public function set clip(value:AnimationClip):voidclipEndproperty public var clipEnd:Number = 1.0动作播放结束时间。clipStartproperty public var clipStart:Number = 0.0动作播放起始时间。nameproperty public var name:String名称。speedproperty public var speed:Number = 1.0动画...

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

822. 急急急,如何设置按钮点击加载ani [ 84%]

...tage;          public class LayaUISample {         private var skin:String = "https://layaair.ldc.layabox.co ... 3B%3B         private var aniPath:String = "https://layaair.ldc.layabox.co ... 3B%3B         public function LayaUISample() {             //初...

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

823. laya.particle.emitter.EmitterBase [ 84%]

...止发射粒子 EmitterBaseProperty Detail_emissionRatepropertyprotected var _emissionRate:Number = 60 粒子发射速率 _emissionTimeproperty protected var _emissionTime:Number = 0 当前剩余发射时间 _frameTimeproperty protected var _frameTime:Number = 0 积累的帧时间 emissionRateprop...

来源: laya_api 发布时间: 20170929

824. 计时器-间隔循环 [ 84%]

...L; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var vGap: number = 200; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText = this.createText("基于帧频旋转", this.rotate...

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

825. 3D场景中背景无法透明,版本2.7.1 [ 84%]

...载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3...

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

826. ts版本drawPath 的fillStyle如何使用 createPattern 填充图片 [ 84%]

...h 的fillStyle如何使用 createPattern 填充图片 例如js的写法: var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); var img=document.getElementById("lamp"); var pat=ctx.createPattern(img,"repeat"); ctx.rect(0,0,150,100); ctx.fillStyle=pat; ctx.fill(); 2018-05-14 添加...

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

827. laya.media.SoundChannel [ 84%]

...ler):void private SoundChannelProperty DetailcompleteHandlerpropertypublic var completeHandler:Handler 播放完成处理器。 durationproperty duration:Number  [read-only] 获取总时间,单位是秒。 Implementation     public function get duration():NumberisStoppedproperty public var...

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

828. 物理触发器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 84%]

...设置触发器的方法如下: ```typescript //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建物理碰撞器 var staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //标...

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

829. png使用base64显示异常 [ 84%]

...现在显示正常了。 __proto.parseImgForBuffer = function(url,data){ var _this = this; var image; var onload = function () { // image.onload = null; // image.onerror = null; // var data = Laya.Texture2D._parse(image); // data._url = "sdfasf" // _this.onLoaded(data); img=HTMLImage.create(image.wi...

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

830. 关于3D物件半透明漫反射率(官网上的例子)的BUG。 [ 84%]

...eenMode = Laya.Stage.SCREEN_NONE;         //添加3D场景         var scene = Laya.stage.addChild(new Laya.Scene());         //添加照相机         var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(...

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