大约有 426 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Bro...
来源: Laya_社区 发布时间: 20171106
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/gltf/glTFResource" glTFResource Class glTFResource Hierarchy Prefab glTFResource Index Constructors constructor Properties destoryedImmediately lock name url uuid version DEBUG Accessors cpuMemory ...
来源: Laya3.0_api 发布时间: 20231102
... Laya; //有了@regClass(),才会被识别为script脚本类 @regClass() export class Script extends Laya.Script { //属性上面有了@property(),才会被识别为IDE里可暴露的属性,每一个属性只要需要暴露,上面就都需要加上@property()。 @property( { type : String } ...
来源: Laya3.0_文档 发布时间: 20251010
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/device/media/HtmlVideo" HtmlVideo Class HtmlVideo html多媒体数据 Hierarchy Bitmap HtmlVideo Index Constructors constructor Properties destoryedImmediately lock name url uuid video DEBUG Access...
来源: Laya3.0_api 发布时间: 20231102
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/spine/SpineTemplet" SpineTemplet Class SpineTemplet Spine动画模板基类 Hierarchy Resource SpineTemplet Index Constructors constructor Properties _id destroyedImmediately lock name skeletonData...
来源: Laya3.0_api 发布时间: 20231115
...,全部代码如下所示: ```typescript /* ImageRunTime逻辑类 */ export default class ImageRunTime extends Laya.Image{ public scaleTime:number = 100; constructor() { super(); //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按...
来源: Laya2.0_文档 发布时间: 20210715
...我创建了一个Sprite3D: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作用,但是我放到frameloop里就有用,请...
来源: Laya_社区 发布时间: 20180309
...去修改源码,现在有插件开发,修改源码会有问题): export default class GifView extends Laya.Clip { /** *开始帧位置 * * @private * @memberof GifView */ private frameIndex = 0; /** ...
来源: Laya_社区 发布时间: 20201211
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 关于遍历产生的sprite的点击事件,急,大神帮看哈 请问下加载TFF字体要怎么加载呢? Animation如何加点击事件 问题状态 最新活动: 2017-11-20 11:27 浏览: 798 关注: 3 人...
来源: Laya_社区 发布时间: 20171120
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 问题状态 最新活动: 2018-08-10 16:41 浏览: 1785 关注: 4 人 。 • 2018-08-10 20:09 确实,我是先把大item遍历到panel中,然后点击大item的时候addchild小item,剩下的大item根据...
来源: Laya_社区 发布时间: 20180810