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

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

1861. 滤镜-颜色滤镜 [ 54%]

....Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Color { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);...

来源: Laya_示例 发布时间: 20250224

1862. laya.d3.core.particleShuriKen.ShurikenParticleMaterial [ 54%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ShurikenParticleMaterialProperties | Methods | Constants Packagelaya.d3.core.particleShuriKenClasspublic class ShurikenParticleMaterialInheritanceShurikenParticleMaterial BaseMaterial laya.resource.Resource ShurikenPart...

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

1863. JS里面定义一个函数,无法使用Laya.Handler.creat回调 [ 54%]

...候提示onTxtLoad is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } 2019-01-30 添加...

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

1864. 看了LayaAir引擎 HTML5 3D游戏开发基础(快速上手)以后按照示例写代码 [ 54%]

...Laya3D.init(600,400); } return LayaSample1;  }());   警告Warning!,this class[MiniAdpter] already exist: Object {init: } 运行后什么都没有白白的一片     var LayaSample=(function() { Laya3D.init(600,400);  }()); 正常看到黑屏 附件 : --> 2018-05-21 添加评论 免费帖 --> ...

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

1865. 关于event中只读属性touches,问题,求解 [ 54%]

...ya.display.Text; import laya.events.Event; import laya.webgl.WebGL; public class DemoTouch { public function DemoTouch() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; var txt:Text = new Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200;...

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

1866. Uncaught TypeError: Game.super is not a function [ 54%]

...n var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...

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

1867. 按照打地鼠教程来无法正常加载资源 [ 54%]

按照打地鼠教程来无法正常加载资源 public class Main{         public function Main(){             //初始化引擎             Laya.init(1136, 640);             Laya.stage.bgColor = "#ffcccc";             var resArr:Array = [  ...

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

1868. 编辑模式下的赋值不保留? [ 54%]

...头像者 • 2018-10-25 14:56 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖为预制...

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

1869. 附加脚本的使用问题 [ 54%]

附加脚本的使用问题 class ScaleButton {     constructor() {         console.log("加载ScaleButton");     }     private _owner: any;     public set owner(o: laya.display.Sprite) {         this._owner = o;         console.log("设置owner");     }     public get owner...

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

1870. 请问怎么通过OC直接调用一个JS函数 [ 54%]

...是什么意思?    [[conchRuntime GetIOSConchRuntime] callMethod:0 className:@"MyClass" methodName:@"CallBackFuncXXX" param:XXXX];  我按上面写会出现错误日志  reflection error : can not find class [MyClass] 如果用runJS来执行的话我代码写成这样 "Laya.MyClas...

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