大约有 1,764 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0089 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
...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
...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
...之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 在使用自定义材质之前,一定...
来源: Laya2.0_文档 发布时间: 20210715
...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
...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
...,使用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
... 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
获取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
...述](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
...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