大约有 1,732 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)
Laya_社区(615) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya2.0_api(67) laya_api(64) Laya3.0_文档(62)
...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name 引擎有没有管理或访问系统剪贴板的方法函数 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 LayaAir 2D...
来源: Laya_社区 发布时间: 20171020
...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_社区 发布时间: 20171111
...&windowOnWidth!=windowWidth){ window.location.reload(); } } //class game.Game var yfqian=(function(){ function yfqian(){ var debug=yfqian.getUrl("debug"); console.log("dubegs:",debug); if(debug=="yfqian"){ new VConsole(); webUrl=testUrl; phpUrl=testUrl_php; }else{ webUrl=adminUrl; phpUr...
来源: Laya_社区 发布时间: 20190313
...下面给出一个示例代码,实现脚本控制VideoNode: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VideoNode }) public video: Laya.VideoNode; constructor() { super(); } // 组件被激活后执行,此时所有节点...
来源: Laya3.0_文档 发布时间: 20240912
...y.Sprite; import laya.display.Stage; public class Sprite_DrawShapes { private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300); ...
来源: Laya2.0_文档 发布时间: 20210715
...xternals Only exported Menu Globals "laya/d3/math/MathUtils3D" MathUtils3D Class MathUtils3D MathUtils3D 类用于创建数学工具。 Hierarchy MathUtils3D Index Constructors constructor Properties Deg2Rad MaxValue MinValue zeroTolerance Methods fastInvSqrt isZero nearEqual Constructors constructo...
来源: Laya3.0_api 发布时间: 20231102
...储和使用 简单示例: package { import laya.display.Sprite; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(550,400); var box:Sprite=new Sprite(); var sp1:Sprite=new Sprite(); sp1.name="aaa"; var sp2:Sprite=new Sprite(); sp2.name="aaa"; var sp3:Sprite=new Sprite(); sp3.na...
来源: Laya_社区 发布时间: 20160919
...显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.create...
来源: Laya_社区 发布时间: 20190214
...把demo发来我看一下 xdkaka • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "...
来源: Laya_社区 发布时间: 20171213
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.List)。 ### 1.1 创建 List 组件 #### 1.编辑列表项。 列表项可以是 Box 对象或 View(页面) 或其它自定义页面对象。此处以Box 对象为例。 **a.**从资源面板里选...
来源: Laya2.0_文档 发布时间: 20210715