大约有 637 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0051 秒)
Laya3.0_api(176) Laya_社区(163) Laya2.0_api(99) laya_api(85) Laya2.0_文档(70) Laya3.0_文档(28) Laya2.0_示例(9) Laya_示例(7)
...stage.addChild(storeTxList); 悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); } } 附件 : --> ListDemo.zip 2019-07-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20190711
...方的一个图层中。这个图层可以是对象层 也可以是格子 class GameInfo{ private tiledMap: Laya.TiledMap; private sp:Laya.Sprite; constructor(){ console.info("start"); this.init(); } init():void{ Laya.init(800, 700, Laya.WebGL); Laya.loader.load("res/atlas/images.atla...
来源: Laya_社区 发布时间: 20171125
...xternals Only exported Menu Globals "laya/media/VideoTexture" VideoTexture Class VideoTexture VideoTexture 多媒体纹理 Hierarchy BaseTexture VideoTexture Index Constructors constructor Properties _id _isLoaded _needUpdate destroyedImmediately element lock name url uuid DEBUG Accessors anisoLevel...
来源: Laya3.0_api 发布时间: 20231115
...Count += 1; } 4.设置卡片 设置8×3个卡片,正常来说,应该用class封装一下,但是本人偷懒,直接弄了两个数组,一个是card,主要是监听鼠标点击Laya.Event.CLICK事件,用color属性标记对错,用winCount记录成功对数,当成功数达到12时,...
来源: Laya_社区 发布时间: 20160623
...加入下述代码,实现一个2D网格渲染器的效果: const { regClass, property } = Laya; @regClass() export class Mesh2DRender extends Laya.Script { @property({type: Laya.Sprite}) private layaMonkey: Laya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): v...
来源: Laya3.0_文档 发布时间: 20250214
API DocumentationAll Packages | All Classes | Index | Frames No Frames GlitterMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class GlitterMaterialInheritanceGlitterMaterial BaseMaterial laya.resource.Resource ... Public Properties Hide Inherited Public Pro...
来源: laya_api 发布时间: 20170929
... laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function...
来源: Laya_社区 发布时间: 20170706
...2.7.1 版本为2.7.1,无法背景透明,永远是黑色 export default class GameUI extends Laya.Scene { constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya....
来源: Laya_社区 发布时间: 20201021
...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.component.Script3D))。 关于脚本的添加使用这里不做过的讲解,在以往的示例中都有或多或少的使用脚本。关于脚本的官方示例([demo地址](https://layaair.ldc.layabox.com/d...
来源: Laya2.0_文档 发布时间: 20210715
...址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.physics.shape.ColliderShape)) (图1) 下面我们来介绍下目前LayaAir3D中所有支持的碰撞器形状。 #### (1) BoxColliderShape盒 盒形是一个基本的方形碰撞原型。盒子可...
来源: Laya2.0_文档 发布时间: 20210715