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

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

211. 天理何在,一个轴心点位中心的addChild到一个父容器,父容器的轴线点也是中心 [ 54%]

...个父容器,父容器的轴线点也是中心 constructor(skin:Box) { super(); this.mc = skin; this._name = this.mc.name; this.addChild(this.mc); var xx:number = this.mc.x; var yy:number = this.mc.y; this.x = xx; this.y = yy; //一个轴心点中心的addChild到另一个轴线点位中心的 thi...

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

212. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 54%]

...o extends Sprite3D {         constructor() {             super();             let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);             mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded);       ...

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

213. 官方案例里摄像机绕物体旋转脚本的问题 [ 54%]

...本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没找到。或者哪位大神...

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

214. UI-RefreshList [ 53%]

...g; public var flagText; public var del; public var delText; constructor(){ super(); this.width = 443; this.height = 86; this.left = 0; this.right = 0; this.zOrder = 2; this.initItem(); } /** 初始化列表子项内容 * */ public function initItem(){ // 列表item的背景图 this.msgBG = new Image...

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

215. 一个简单的跑酷曲面shader分享 [ 53%]

...e: number = Laya.Shader3D.propertyNameToID("u_ZDistance"); constructor() { super(); this.setShaderName("CustomCurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } public static ini...

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

216. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 53%]

...script export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir中自带的材质...

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

217. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 52%]

... export default class SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"script/view/dialo...

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

218. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 52%]

...(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as ...

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

219. 引擎 TiledMap 居然不支持图块翻转 [ 52%]

...Sprite extends Laya.Sprite {         constructor() {             super(...arguments);             this.relativeX = 0;             this.relativeY = 0;             this.isAloneObject = false;             this.isHaveAnimation = false;             this.drawImageNu...

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

220. 加载的时候动画会卡 [ 52%]

...e));     }   (function() {     function Lload() {         Lload.__super.call(this);         this.dh();         this.btn.on(Event.MOUSE_DOWN,game,this.toquanjing);         Laya.propertyIsEnumerable = true;     }     Laya.class(Lload,"Lload",ui.loadUI);     Lload.prototype.d...

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