大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
Laya_社区(706) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...如下: export default class TestUI extends ui.test.TestSceneUI { private resource: Array<String> = [ "gate/Conventional/Test.ls", ]; constructor() { super(); } onAwake(): void { Laya.loader.create(this.resource, Laya.Handler.create(this, this....
来源: Laya_社区 发布时间: 20190925
...Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Prefab }) private loadingScenePrefab: Laya.Prefab; private loadingScene: Laya.Node; constructor() { super(); } /** * 第一次执行update之前执行,只会执行一次 */ onStart(): void { //创建Loading场景 this.loadingScene = ...
来源: Laya3.0_文档 发布时间: 20251010
..."image/comp.json", type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); _list.itemRender = RecordIt...
来源: Laya_社区 发布时间: 20170323
...prite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE >> 1, this.DEF_SIZE >> 1,-90...
来源: Laya_社区 发布时间: 20180123
...stomShader, vs, ps, attributeMap, uniformMap); }class Shader_GlowingEdge { private rotation: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.initShader(); var scene: Laya.Scene...
来源: Laya_示例 发布时间: 20260303
...ya.display.Sprite; import laya.events.Event; public class Sprite_Example { private var sprite:Sprite; private var shape:Sprite public function Sprite_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit();...
来源: Laya3.0_api 发布时间: 20231115
...,包括当前类所有事件监听的移除,大致如下 /**销毁**/ private function dispose():void { this.removeEvent(); this.removeChildren(); this.removeSelf(); }visible(非可见区域的对象尽量从显示列表移除或者设置visible=false。),设置为visible=false的显示对...
来源: Laya_社区 发布时间: 20170307
...的时候的代码,就是这个时候回卡顿,而且会显示倒带 private onLoop(){ if(this.WheelList.visible==true) { this.WheelList.set_visible(false); this.WheelList2.set_visib...
来源: Laya_社区 发布时间: 20201025
...,拿其中一张图片的像素数据,赋给另一张 代码如下: private _testSetPixels() { let data = this.test1.texture.getPixels(0, 0, this.test1.width, this.test1.height); let width = this.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1...
来源: Laya_社区 发布时间: 20210114
...egate::onOpen() this=70251b50 ws=701bbc80 Error compiling builtin: Invalid private name '@undefined' 2017-06-04 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 用1.7.6beta之前...
来源: Laya_社区 发布时间: 20170604