大约有 1,253 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0046 秒)
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/CommonScript" CommonScript Class CommonScript CommonScript 类用于创建公共脚本类。 Hierarchy Component CommonScript Index Constructors constructor Properties _extra _singleton ...
来源: Laya3.0_api 发布时间: 20231102
...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Restrict { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.S...
来源: Laya_示例 发布时间: 20250220
...beta3版本场景添加脚本为组件报错 报一个窗口提示: export default class Start extends Laya.Script { constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 */ onAwake(): void { } /** * 第一次...
来源: Laya_社区 发布时间: 20181013
... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sound_SimpleDemo { //声明一个信息文本 private txtInfo: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stag...
来源: Laya2.0_示例 发布时间: 20250220
...dler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Tween_EaseFunctionsDemo { private character: Sprite; private duration: number = 2000; private tween: Tween; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV ...
来源: Laya2.0_示例 发布时间: 20250220
...r = Laya.Handler; import Browser= Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_SwitchTexture { private texture1: string = "../../res/apes/monkey2.png"; private texture2: string = "../../res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不...
来源: Laya_示例 发布时间: 20250220
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Tween" Tween Class Tween Tween 是一个缓动类。使用此类能够实现对目标对象属性的渐变。 Hierarchy Tween Index Properties repeat update Accessors progress Methods clear c...
来源: Laya3.0_api 发布时间: 20231115
... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_MagnifyingGlass { private maskSp:Sprite; private bg2:Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...
来源: Laya_示例 发布时间: 20250220
... 项目的ts代码里有个类A,它有一个静态函数a,像这样: export class A { public static a(data:string):void } 我在ios下oc代码里想调用A的静态函数a,代码写成 [[conchRuntime GetIOSConchRuntime] runJS:@"A.a('123')"]; 运行后认为找不到A,我...
来源: Laya_社区 发布时间: 20190710
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 动画混合无效(版本2.6) 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 Native2.0正式版wss连接不成功web版本没问题,有DEMO 问...
来源: Laya_社区 发布时间: 20180612