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

大约有 3,003 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)

2321. 请问 layaair2.0的js有没有api可以查询 例如Laya.Script [ 49%]

...击它们无法获知,我点的是哪个,代码 如下 export default class btn1 extends Laya.Script { constructor(){super();} onEnable(){} onClick(){ alert("id="+this.id); //这里有一个id,但是系统自动生成的,无法获知这个id代表哪个按钮被点(因为我有4个按钮...

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

2322. laya.resource.Texture2DArray_API3.0 [ 49%]

...s Only exported Menu Globals "laya/resource/Texture2DArray" Texture2DArray Class Texture2DArray 2D 纹理 数组 Hierarchy BaseTexture Texture2DArray Index Constructors constructor Properties _id depth destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel compareMode cpu...

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

2323. TS版本的官方示例,导出到玩一玩,在读写文件时能存不能读,读不出来,甚至直接读取会显示字符串里边有乱码。。。。 [ 49%]

...er.js的 var LocalStorageAdpt=(function(){ function LocalStorageAdpt(){} __class(LocalStorageAdpt,'BKLaya.adptcodes.LocalStorageAdpt'); LocalStorageAdpt._readData=function(){ if (!BK.FileUtil.isFileExist(LocalStorageAdpt.dataPath)){ return null; } try{ var dataO=BK.FileUtil.readFile(LocalStorageAdpt...

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

2324. laya.d3.math.Vector4 [ 49%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Vector4Properties | Methods Packagelaya.d3.mathClasspublic class Vector4InheritanceVector4 ObjectImplements laya.d3.core.IClone Vector4 类用于创建四维向量。 Public Properties PropertyDefined By  ONE : Vector...

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

2325. laya.d3.core.light.DirectionLight [ 49%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames DirectionLightProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class DirectionLightInheritanceDirectionLight LightSprite Sprite3D ComponentNode Node EventDispatcher Object DirectionLight ...

来源: laya_api 发布时间: 20170929

2326. as中BoxCollider引入了,但是运行的时候还是提示null [ 49%]

...提示:错误,图片是IDE自带的,也不显示 Laya 2.7.1 PlatformClass 在哪里?这个类怎么没了?我需要引入什么类库么? 根据官方教程:FlashBuilder-LayaCompiler-运行提示"must set Document Class!" 问题状态 最新活动: 2017-12-20 12:15 浏览: 1241 关注:...

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

2327. tiledmap有时尺寸不正确 [ 49%]

...ir有bug吗,我的代码是根据教程来写的,现附上代码export class Scene{ // 当前场景的配置信息 private _mLevelConf:LevelConf = null; // 地图文件 private _mTiledMap:TiledMap = null; // 自定义信息文件 private _mLoader:Loader = null; // 当前地图X坐标 private _mV...

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

2328. 2D聚光灯 · LayaAir3.4 · 引擎文档 · LAYABOX [ 49%]

...后,加入下述代码,实现一个2D聚光灯的效果: const { regClass, property } = Laya; @regClass() export class SpotLight extends Laya.Script { @property({ type: Laya.Sprite }) private spotLight: Laya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): voi...

来源: Laya3.0_文档 发布时间: 20251010

2329. Laya下怎么实现复制 [ 49%]

...1. Define some markup --> <div>hello world</div> <button class="btn" data-clipboard-action="copy" data-clipboard-target="div">Copy</button>  <!-- 2. Include library --> <script src="../src/Frame/ThirdLibs/clipboard.min.js"></script>  <!-- 3. Instanti...

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

2330. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 49%]

...导致的,为了避免这个问题,可以参考以下方式 */ public class MouseOver_mouseOut { private var arr:Array;//用于存储处于over状态的显示对象 public function MouseOver_mouseOut() { Laya.init(600,400); Laya.stage.bgColor='#EEFFCC'; arr=; var sp1:Sprite=new Sprite(); sp1.aut...

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