• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,063 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)

941. Laya.loader.load 教程代码出错 [ 46%]

...        private var img:Sprite ;         private var index:int ;         public function LayaSample() {             //初始化引擎             Laya.init(600, 300);                          img = new Sprite();         ...

来源: Laya_社区 发布时间: 20170918

942. 计时器-延迟调用 [ 46%]

...232628"; demonstrate(); } private function demonstrate():void { for (var i:int = 0; i < 10; i++) { Laya.timer.callLater(this, onCallLater); } } private function onCallLater(e:*=null):void { trace("onCallLater triggered"); var text:Text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.col...

来源: Laya2.0_示例 发布时间: 20260303

943. laya.physics.joint.MotorJoint [ 46%]

...entationAll Packages | All Classes | Index | Frames No Frames MotorJointProperties | Methods Packagelaya.physics.jointClasspublic class MotorJointInheritanceMotorJoint JointBase Component Object 马达关节:用来限制两个刚体,使其相对位置和角度保持不变 Public Properti...

来源: Laya2.0_api 发布时间: 20190513

944. Sprite-缓存为静态图像 [ 46%]

...Box:Sprite = new Sprite(); // 随机摆放文本 var text:Text; for (var i:int = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y = M...

来源: Laya2.0_示例 发布时间: 20260303

945. laya.d3.component.physics.BoxCollider [ 46%]

...。 Component3D enable : Boolean 获取是否启用。 Component3D id : int[read-only] 获取唯一标识ID。 Component3D isSingleton : Boolean[override] [read-only] 获取是否为单实例组件。 Collider owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D  size : V...

来源: laya_api 发布时间: 20170929

946. laya.d3.component.physics.SphereCollider [ 46%]

...。 Component3D enable : Boolean 获取是否启用。 Component3D id : int[read-only] 获取唯一标识ID。 Component3D isSingleton : Boolean[override] [read-only] 获取是否为单实例组件。 Collider owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D  radius :...

来源: laya_api 发布时间: 20170929

947. 问一下tween的一些参数怎么设置 [ 46%]

...s.Tween; public class LayaAirDemo { private var sp:Sprite; private var num:int; public function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1))...

来源: Laya_社区 发布时间: 20160913

948. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 46%]

...官方微信飞机结构类似)  问题截图:   代码:for (var i:int=0;i&lt;10;i++){ var p:wheel=Pool.getItemByClass("wheel", wheel); p.pos(i*90+100,200); p.init(); roleLayer.addChild(p) } /////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0...

来源: Laya_社区 发布时间: 20190312

949. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 46%]

... BagData.ins.getItemByType(PackType.item_); //遍历装备列表 for(var i:int = 0; i &lt; allEquipArr.length; i++) { var itemlo:ItemConfigLO = BagData.ins.getItemConfigLOById(allEquipArr[i].baseId.toString()); //装备类型分类再显示 if(itemlo) { data.push({itemImg:&quot;&quot;+itemlo.image, ...

来源: Laya_社区 发布时间: 20180321

950. laya.physics.joint.RevoluteJoint [ 46%]

...ationAll Packages | All Classes | Index | Frames No Frames RevoluteJointProperties | Methods Packagelaya.physics.jointClasspublic class RevoluteJointInheritanceRevoluteJoint JointBase Component Object 旋转关节强制两个物体共享一个锚点,两个物体相对旋转 Public Properti...

来源: Laya2.0_api 发布时间: 20190513