大约有 3,003 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)
Laya_社区(1068) Laya3.0_api(668) Laya2.0_api(366) laya_api(298) Laya2.0_文档(230) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(109)
...击它们无法获知,我点的是哪个,代码 如下 export default class btn1 extends Laya.Script { constructor(){super();} onEnable(){} onClick(){ alert("id="+this.id); //这里有一个id,但是系统自动生成的,无法获知这个id代表哪个按钮被点(因为我有4个按钮...
来源: Laya_社区 发布时间: 20181029
...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
...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
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
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
...提示:错误,图片是IDE自带的,也不显示 Laya 2.7.1 PlatformClass 在哪里?这个类怎么没了?我需要引入什么类库么? 根据官方教程:FlashBuilder-LayaCompiler-运行提示"must set Document Class!" 问题状态 最新活动: 2017-12-20 12:15 浏览: 1241 关注:...
来源: Laya_社区 发布时间: 20171220
...ir有bug吗,我的代码是根据教程来写的,现附上代码export class Scene{ // 当前场景的配置信息 private _mLevelConf:LevelConf = null; // 地图文件 private _mTiledMap:TiledMap = null; // 自定义信息文件 private _mLoader:Loader = null; // 当前地图X坐标 private _mV...
来源: Laya_社区 发布时间: 20180529
...后,加入下述代码,实现一个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
...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
...导致的,为了避免这个问题,可以参考以下方式 */ 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