大约有 1,732 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0055 秒)
Laya_社区(615) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya2.0_api(67) laya_api(64) Laya3.0_文档(62)
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Clip) Clip 组件的资源示例: ![图片0.png](img/1.png) (图1) 设置 clipX 属性的值为10后的显示效果: ![图片0.png](img/2.png) (图2) 设置 index 属性...
来源: Laya2.0_文档 发布时间: 20210714
...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Physics_Physics_CollisionEvent { constructor() { this.count = 7; this.bodys = []; this.touching = []; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya....
来源: Laya2.0_示例 发布时间: 20241002
天空穹不显示 export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100)...
来源: Laya_社区 发布时间: 20200728
...r.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprit...
来源: Laya_社区 发布时间: 20180125
...xternals Only exported Menu Globals "laya/display/css/TextStyle" TextStyle Class TextStyle 文本的样式类 Hierarchy TextStyle Index Constructors constructor Properties align bold color font fontSize italic leading strikethrough stroke strokeColor underline underlineColor valign Constructors cons...
来源: Laya3.0_api 发布时间: 20231115
...文件夹npc,并且创建一个类。代码如下:module npc { export class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } } 然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npcc:Base...
来源: Laya_社区 发布时间: 20180205
...ya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "../../res/ui/button-7.png"; private clipSkin: string = "../../res/ui/num0-9.png"; private bgSkin: string = "../../res/ui/coutDown.png"; private counter: Clip; private currFrame: n...
来源: Laya_示例 发布时间: 20241002
...ya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_FixInteractiveRegion { private logger: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Lay...
来源: Laya_示例 发布时间: 20241002
...er的时候报错: GlowFilter is not a constructor Uncaught Can not find class srcipt/game/Game_App.ts 问题状态 最新活动: 2017-02-18 10:13 浏览: 1889 关注: 1 人 ZGH • 2019-02-28 15:36 怎么解决啊?谢谢
来源: Laya_社区 发布时间: 20170217
...------------------- import Shader = laya.webgl.shader.Shader; export class coolDownShader extends Shader { /** * 当前着色器的一个实例对象。 */ public static shader: coolDownShader = new coolDownShader(); constructor()...
来源: Laya_社区 发布时间: 20170606