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

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

891. laya.d3.core.BaseCamera [ 66%]

...ath.pow(2,1)为第0层和第1层可见。BaseCamera destroyed : Boolean = false[只读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node  farPlane : Number 获取远裁面。 BaseCamera  fieldOfView : Nu...

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

892. 请问laya的List除了用selectBox,还有什么方式可以自定义列表项选中状态下的表现吗 [ 66%]

... for(var i:int=0;i<10;i++) { data.push({img:"res/ui/"+i+".png",isSelect:false}); } my_list.array=data; my_list.selectEnable=true; my_list.selectHandler=new Handler(this,onSlectHandler); my_list.renderHandler=new Handler(this,onRenderHandler); } private function onRenderHandler(cell:Box,index:int)...

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

893. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 66%]

...示 console.log('您的浏览器版本过低,暂不支持。'); return false; } canvas.width = width; canvas.height = height; contex = canvas.getContext("2d"); circle = { x: width / 2, y: height / 2, r: width / 2 }; contex.clearRect(0, 0, width, height); contex.save(); contex.beginPath(); contex.a...

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

894. 物理Bodies绑定Laya.Sprite [ 66%]

...r render = LayaRender.create({ engine: this.engine, options: { wireframes: false, background: "#000" } }); LayaRender.run(render); // Render 启动 var gun_skin = new Laya.Sprite().loadImage("images/qiang_001.png"); gun_skin.scale(50, 50); gun_skin.pivot(gun_skin.width / 2, gun_skin.height / 2); gun...

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

895. laya.d3.animation.AnimationClip_API3.0 [ 66%]

...在引用计数为0的时候立马删除他 islooping islooping: boolean = false Defined in laya/d3/animation/AnimationClip.ts:79 是否循环。 Optional lock lock: boolean Inherited from Resource.lock Defined in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机...

来源: Laya3.0_api 发布时间: 20231115

896. laya.ui.Tree_API3.0 [ 66%]

...ra Defined in laya/display/Node.ts:56 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUr...

来源: Laya3.0_api 发布时间: 20231115

897. iOS平台,WiFi连网正常,4G下经常失败 [ 66%]

...adSync(urlpath + 'update/assetsid.txt?rand=' + Math.random() * Date.now(), false, null)); console.log("assetsid old:" + curassets + " new:" + assetsidStr); if (!assetsidStr) { if (curassets && curassets != "") { if (window["onLayaInitError"]) { isDccOk = false; window["onLayaInitError"]("Upd...

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

898. laya.physics.joint.MotorJoint [ 66%]

...,也是selfBody的目标角度MotorJoint  collideConnected : Boolean = false[首次设置有效]两个刚体是否可以发生碰撞,默认为falseMotorJoint  correctionFactor : NumberselfBody向目标位置移动时的缓动因子,取值0~1,值越大速度越快MotorJoint destroyed : B...

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

899. 照相机-3D空间转2D空间 [ 66%]

...3(0, 0.35, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3...

来源: Laya_示例 发布时间: 20260303

900. 物理(二)(平移,旋转,齿轮)(TypeScript-IDE篇(TS)-使用2d物理系统) [ 66%]

...nected [首次设置有效]两个刚体是否可以发生碰撞,默认为false。 #### 实例演练 一个最基本的平移关节,单独使用是很简单的,拖入一个方块并添加`boxcollider`碰撞体,给他添加平移关节`PrismaticJoint`,在刚体`rigidbody`重力`gravityScale`...

来源: Laya2.0_文档 发布时间: 20210715