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

大约有 2,033 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0066 秒)

871. l龙骨动画内存上升 [ 75%]

...stage.bgColor = "#ffffff";             Laya.stage.on(Event.CLICK, this, play);         }                  function play():void {             Laya.timer.loop(5000, this, function():void {                 playDragonBonesAnimation("BigAward/BigAward.sk",0...

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

872. 物理系统之ConfigurableConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 75%]

...约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vec...

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

873. [求助]无法使用loader预先加载 [ 75%]

...o.png", "res/mainpage/BtnYes.png" ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); Laya.loader.on(Event.ERROR, this, onError);   private function onAssetLoaded(texture:Texture):void{             //console.log("111...

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

874. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 75%]

...lor = new Laya.Vector4(0, 1, 0, 1); var index = 0; Laya.timer.frameLoop(1, this, function () { index +=1; layaMonkey.meshRender.material.transformUV.offset = new Laya.Vector2(index 0/100.0, index 0/100.0);     layaMonkey.active = !debugModel;     layaMonkey.transform.rotate(rotation, false); ...

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

875. Sprite-缓存为静态图像 [ 75%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.Stat.show(); this.cacheText(); } cacheText() { const Sprite = Laya.Sprite, Text = Laya.Text; let textBox = new Sprite(); Laya.stage.addChild(textBox); // 随机摆放文本 let text; for (let i = 0; i < 1000; i++) { text = new Text(); tex...

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

876. 求解关于跨域的具体操作 [ 75%]

...-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04 添加评论 ...

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

877. list 添加引发问题,求助! [ 75%]

...tate_txt:{text:str},sign_btn:{mouseEnabled:bo}, sign_btn:{gray:!bo}}); } this._signlist.array = arr; this._signlist.selectEnable = true; 以上,list中的按钮mouseEnabled与gray属性 就出问题了,乱掉了。不知道什么原因 170*****650 • 2017-08-23 15:35 还是对setItem和getCel...

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

878. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 75%]

...CustomMaterial.js function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return this._getTextur...

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

879. 话说Laya3D怎么自定义shader来实现后期处理呢? [ 75%]

...没有起作用啊cmd.blitScreenTriangle(sourceTexture, destTexture, null, this._shader, this._shaderData, 0); 2020-05-22 0 0 分享 微博 QZONE 微信 MQ 赞同来自: Try......................  render(context: { command: any; camera: { viewport: any; }; source: Laya.RenderTexture; def...

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

880. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 75%]

...向, 求大大指点, 感激   附上渐变SVG文字的代码:   /** * this class is a extension of texts with gradient color  */ var effect; (function (effect) {     var GradientText = (function (_super) {         const style = {             DEFAULT: "default",             VERT...

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