大约有 4,338 项符合查询结果, 库内数据总量为 30,789 项。 (搜索耗时: 0.0080 秒)
Laya_社区(2450) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(25)
...内部容器大小不生效 ViewActivityLimitedTask.prototype.initComp = function() { this.list_view.vScrollBarSkin = ""; this.list_view.scrollBar.elasticBackTime = ListConst.elasticBackTime; this.list_view.scrollBar.elasticDistance = ListConst.elasticDistance; this.list_view.renderHandler = new Lay...
来源: Laya_社区 发布时间: 20191111
...en.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animationDelay); ...
来源: Laya_社区 发布时间: 20170630
...Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Sprite3D):void { cu = scene.addChild(sp) as Sprite3D; cu.transform.rotate(new Vector3(0, -90, 0), true, false); _rb = cu.getComponent(Rigidbody3D) as Rigidbody3D; })); //施加作用力或冲量 btn_a.on(Event...
来源: Laya_社区 发布时间: 20190417
...事件这里就不用说了,应该了解了!比如代码 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) } 方法二: list组件.itemRender = UI页面 f...
来源: Laya_社区 发布时间: 20171128
...(XCode、Android Studio项目),会看到所有的横竖屏属性: function setOrientation(s) { var nameToVal = { landscape: 0, portrait: 1, user: 2, behind: 3, sensor: 4, nosensor: 5, sensor_landscape: 6, sensorLandscape: 6, sensor_portrait: 7, sensorPortrait: 7, reverse_landscape: 8, revers...
来源: Laya3.0_文档 发布时间: 20241024
...yer.addChild(p) } /////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); } 附件 : --> 相关链接 : h...
来源: Laya_社区 发布时间: 20190312
...rivate const AniConfPath:String = "../../res/fighter/fighter.json"; public function Animation_Altas() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sc...
来源: Laya2.0_示例 发布时间: 20241128
...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...
来源: Laya3.0_api 发布时间: 20231115
...ext; public class HelloLayabox { public function HelloLayabox() { //创建舞台,默认背景色是黑色的 Laya.init(600, 300); var txt:Text = new Text(); ...
来源: Laya2.0_文档 发布时间: 20210715
... request:fail invalid url "res/protobuf/Login.proto" 具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________") var ProtoBuf = Browser.window.protobuf; // Laya.init(550, 400); ProtoB...
来源: Laya_社区 发布时间: 20180704