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

大约有 1,764 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0089 秒)

1051. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 59%]

...p.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,Ba...

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

1052. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 59%]

...AssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyBootPage2UI);     UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.super(this);          this.Boot.selectHandler = new Laya.Handler(this, onSelect...

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

1053. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 59%]

...之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定...

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

1054. laya.d3.math.native.ConchQuaternion_API3.0 [ 59%]

...xported Menu Globals "laya/d3/math/Native/ConchQuaternion" ConchQuaternion Class ConchQuaternion Quaternion 类用于创建四元数。 Hierarchy ConchQuaternion Implements IClone Index Constructors constructor Properties elements DEFAULT NAN Accessors w x y z Methods clone cloneTo equals fromArray ...

来源: Laya3.0_api 发布时间: 20231102

1055. 加载UI不成功,项目源码已经上传 [ 59%]

...17-11-13 16:39 我截图的这个是源码 wudi199553 • 2017-11-13 19:48 class TestUI extends ui.test.TestPageUI { constructor() { super(); } } Laya.init(600, 400); Laya.stage.bgColor = "#FFFFF00"; this.onLoaded(); function onLoaded(): void { var testUI: TestUI = new TestUI(); Laya.stage...

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

1056. 富文本使用图集 [ 59%]

...,使用ani的标签,但是我用了后会提示我 [error] Undefined class: ani 这是我哪里用的不对吗?   Laya.loader.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS);  public function createAnimation():void         {             var appen...

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

1057. laya.d3.core.MeshFilter_API3.0 [ 58%]

... Externals Only exported Menu Globals "laya/d3/core/MeshFilter" MeshFilter Class MeshFilter MeshFilter 类用于创建网格过滤器。 Hierarchy Component MeshFilter Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlag...

来源: Laya3.0_api 发布时间: 20231115

1058. 获取Sprite位置问题 [ 58%]

获取Sprite位置问题 class Plant extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动...

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

1059. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 58%]

...述](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.net.LoaderManager) 。 ```typescript ...... //批量预加载方式 PreloadingRes(){ //预加载所有资源 var resource:Array = ["res/threeDimen/scene/TerrainScene/XunLongShi.ls", "res/threeDimen/skyBox/skyBox2/s...

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

1060. 加载UI为什么总是加载白底 [ 58%]

...var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"start",_super); //var _proto = Game.prototype; return start; })(ui.startUI) 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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