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

大约有 154 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

121. 没有人尝试使用3d物理引擎么 [ 53%]

...a.transform.rotate(new Vector3(-15, 0, 0), true, false); camera.clearColor=null; camera.addComponent(CameraMoveScript); CameraStat.show(camera, 200, 0); //添加方向光 var directionLight:DirectionLight=scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor=new Vector3...

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

122. 组件装饰器说明 · LayaAir3.0文档 · LAYABOX [ 53%]

... 0, 1) 效果如动图2-4所示: (动图2-4) 如果inspector参数为null,则不会为属性构造属性输入控件,这与hidden参数设置为true不同。hidden为true是创建但不可见,inspector为null则是完全不创建。 2.7 组件属性分类与排序 组件的属性默认...

来源: Laya3.0_文档 发布时间: 20240809

123. zip更新模式缓存是怎么读取的?? [ 52%]

...mber,speed:number)=>{ onEvent('downloading',Math.floor((now/total)*100),null); return false; }, //完成回调 (curlret:number,httpret:number)=>{ if(curlret!=0 || httpret<200||httpret>=300){ onEvent('downloadError'); //throw 'download error'; }else{ onEvent('downloadOK'); //let md5 = cal...

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

124. 导出的3D资源加载报错 [ 51%]

...eate("res/LayaScene_layaScene/layaScene.lh",Handler.create(this,onModelOK),null,Sprite3D); } private function onModelOK():void { //添加3D场景 var scene:Scene = new Scene(); Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera:Camera = new Camera( 0, 0...

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

125. 高级应用-实时阴影 [ 51%]

...mplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLight.direction = _dir...

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

126. VR场景-VR地球 [ 51%]

...Box; var rotation = new Laya.Vector3(0, 0.002, 0); Laya.timer.frameLoop(1, null, function() { earth.transform.rotate(rotation, true); });class VRScene1 { private rotation: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Lay...

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

127. 急急急,如何设置按钮点击加载ani [ 51%]

...         Laya.loader.load(aniPath, Handler.create(this,onLoaded),null,Loader.ATLAS);         }                  private function onLoaded():void {             //加载按钮资源             Laya.loader.load(skin,Handler.create(this,onBegin))...

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

128. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 51%]

...为true,根据加载文件个数获取加载进度 Laya.loader.load(arr,null,Handler.create(this,onProgress,null,false)); } // 将进度条显示到舞台 private function showProgress():void { progressBar=new ProgressBar("loads/progressBar.png"); progressBar.pos(50,300); progressBar.width=300; pr...

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

129. 缓存工具-layadcc · LayaAir3.0文档 · LAYABOX [ 50%]

...m frw 文件访问接口,不同的平台需要不同的实现。如果为null,则自动选择网页或者native两个平台 * @param dccurl dcc的服务器地址 */ constructor(dccurl:string, frw:new ()=>IGitFSFileIO|null, logger:ICheckLog=null) enableLog(b:boolean) /** * 初始化,下载...

来源: Laya3.0_文档 发布时间: 20240726

130. LAYABOX游戏实时语音之APP版本 [ 50%]

...456"; private static String mChatRoomId = ""; private String mMsgContent = null; private String mStoragePath = null; private boolean mAudioDownloaded = false; private long mRecvAudioMsgId = 0; private String mRecvAudioPath = null; private String mSendAudioPath = null; private long mPTTStartTime = 0;...

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