大约有 154 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)
Laya_社区(56) Laya_示例(36) Laya2.0_示例(20) Laya3.0_api(13) Laya2.0_api(12) Laya3.0_文档(9) Laya2.0_文档(6) laya_api(2)
...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
... 0, 1) 效果如动图2-4所示: (动图2-4) 如果inspector参数为null,则不会为属性构造属性输入控件,这与hidden参数设置为true不同。hidden为true是创建但不可见,inspector为null则是完全不创建。 2.7 组件属性分类与排序 组件的属性默认...
来源: Laya3.0_文档 发布时间: 20240809
...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
...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
...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
...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
... 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
...为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
...m frw 文件访问接口,不同的平台需要不同的实现。如果为null,则自动选择网页或者native两个平台 * @param dccurl dcc的服务器地址 */ constructor(dccurl:string, frw:new ()=>IGitFSFileIO|null, logger:ICheckLog=null) enableLog(b:boolean) /** * 初始化,下载...
来源: Laya3.0_文档 发布时间: 20240726
...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