大约有 3,979 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0069 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...remember.ttf",new Handler(this,test)); } private function test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text); text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = ...
来源: Laya_社区 发布时间: 20191211
...``typescript //初始化引擎 Laya.init(550,400); //自定义文件名称 var mFontName = "diyFont"; var mBitmapFont = new Laya.BitmapFont(); //这里不需要扩展名,外部保证fnt与png文件同名 mBitmapFont.loadFont("res/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ ini...
来源: Laya2.0_文档 发布时间: 20201114
...ndSphere toDefault():voidBoundSphereProperty Detailcenterpropertypublic var center:Vector3包围球的中心。radiusproperty public var radius:Number包围球的半径。Constructor DetailBoundSphere()Constructorpublic function BoundSphere(center:Vector3, radius:Number) 创建一个 BoundSphere...
来源: Laya2.0_api 发布时间: 20190513
...生变化后调度。Component3DProperty DetailattachBonespropertypublic var attachBones:Vector.<String>挂点骨骼的名称。matrixsproperty public var matrixs:Vector.<Matrix4x4>挂点骨骼的变换矩阵。Constructor DetailAttachPoint()Constructorpublic function AttachPoint() 创...
来源: laya_api 发布时间: 20170929
...次实例化这个类的时候会报错,是不是这个类写得不对呀 var Test = (function(_super){ function Test(){ Test.super(this); console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_...
来源: Laya_社区 发布时间: 20180605
... https://ask.layabox.com/question/16878 这个问题 function beginLoad(){ var res_array = [ {url : "res/atlas/loading.atlas", type : Laya.Loader.ATLAS}, {url : "res/atlas/person.atlas", type : Laya.Loader.ATLAS}, {url : "loading/progress.png", type : Laya.Loader.IMAGE}, {url : "loading/progress$bar...
来源: Laya_社区 发布时间: 20180803
...hSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya.MeshColliderShape(); bulletShape.mesh = bullet.meshFilter.sharedMesh; bulletCollider.colliderShape = bulletShape; })) } } 子弹...
来源: Laya_社区 发布时间: 20190308
...Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //加载插件导出的场景。 var scene = Laya.Scene.load("LayaScene_layaScene/layaScene.ls"); Laya.stage.addChild(scene); var camera = new Laya.Camera(0, 0.1, 1000); //加载到场景 scene.addChild(camera); 2018-11-07 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20181107
... > this._length)throw "getInt16 error - Out of bounds"; var us=this._d_.getInt16(this._pos_,this._xd_); this._pos_+=2; return us; } 只在那个 If 那一行报错了 pos的大小是13000+ ; 控制台报错的原因是undifend 2018-10-25...
来源: Laya_社区 发布时间: 20181025
...eate(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); tl.on(Event.COMPLETE, this, () => {console.log('end')})...
来源: Laya_社区 发布时间: 20180817