大约有 185 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0047 秒)
...w) declare module Laya{//在这个module里添加 class BaseView extends Scene{}//继承自Scene }里加上自己定义的页面,然后在编辑页面F9的Code导入类里写上引用和赋值 import BaseView from "../BaseView"; Laya.BaseView = BaseView 2019-09-06 0 1 分享 微博 QZ...
来源: Laya_社区 发布时间: 20190417
... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({type:Laya.VSlider}) public vslider: Laya.VSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vslider.pos(300,300...
来源: Laya3.0_文档 发布时间: 20251010
... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HSlider }) public hslider: Laya.HSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hslider.pos(300,...
来源: Laya3.0_文档 发布时间: 20251010
...** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ImageRunTime() { //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮...
来源: Laya2.0_文档 发布时间: 20210714
... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let opendata = new...
来源: Laya3.0_文档 发布时间: 20251010
....addChild(this.text); } } //激活启动类 new Main(); class MonkeyScript extends Laya.Script3D{ private _scene:Laya.Scene3D; private _text:Laya.Text; private _camera:Laya.Camera; private rotation:Laya.Vector3; private lastPosition:Laya.Vector2; priva...
来源: Laya_社区 发布时间: 20190531
... const { regClass, property } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件...
来源: Laya3.0_文档 发布时间: 20251010
...较大,ts类比较多,转化成js后 1.每个js文件中的开头 __extends 在发布后都在,这个只需保留一个即可。 2.不同js如果module相同的,能否合并到一起,不然会出现非常多的类似 t.widgets || (t.widgets = {}) 这种东西。 目前的js压缩只...
来源: Laya_社区 发布时间: 20180821
... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): voi...
来源: Laya3.0_文档 发布时间: 20251010
...器超过一页后必出问题 Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent Uncaught Can not find class laya.ani.bone.Skeleton 发布微信小游戏运行错误,Class constructor xx cannot be invoked without 'new' Uncaught Can not find class laya.html.dom.HTMLDivEleme...
来源: Laya_社区 发布时间: 20190701