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

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

381. 动画实例在调用含有名字参数的时候获取不到边界 [ 47%]

...: 2 人 198*****136 • 2020-09-11 16:34 export default class Scene_Battle extends Laya.Script{ playerUnitReady:number; enemyUnitReady:number; private playerUnit:Laya.Animation[]; private enemyUnit:Laya.Animation[]; constructor(){ super(); Laya.stage.alignH= Laya.Stage.ALIGN_CENTER; Laya.stage.align...

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

382. 请问laya有没有类似翻页容器(pageView)的组件? [ 47%]

...fo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateIte...

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

383. 角色模型的材质列表切换后,不播放动作了 [ 47%]

...=texture2D(u_texture, v_Texcoord);}\n";自定义材质class CustomMaterial extends Laya.BaseMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEX...

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

384. 描边Shader,使用了两个Pass [ 46%]

...截图如下:   核心代码如下 export default class OutlineMaterial extends Laya.BaseMaterial { constructor() { super() var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord': Laya.VertexMesh.MESH_TEXTURECOORDINATE0, } var uni...

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

385. 求HTTP相关的文档或者例子谢谢了 [ 46%]

...RequestMethod; import flash.net.URLVariables; public class HTTP_URLRequest extends Sprite { public function HTTP_URLRequest() { if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { //第一步:加载数据:创建URLLoader...

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

386. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 46%]

...脚本作为组件添加到精灵上。) ```typescript class colliderCheck extends Script3D{ /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other) { console.log("triggerEnter"); } /** * 持续触发时执行 * 此方法为虚方法,使用时重...

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

387. 新手引导在ios浏览器表现异常 [ 46%]

.../2,100);         }     }     export class MazeGuideView extends Laya.Sprite {         protected guideContainer: Laya.Sprite;         protected guideHitArea: Laya.HitArea;         protected tipContainer: Laya.Image;         constructor() { ...

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

388. 基础使用与构成 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...ted"; const { regClass, property } = Laya; @regClass() export class Script extends ItemBoxBase { constructor() { super(); } get dataSource(): any { return super.dataSource; } set dataSource(value: any) { super.dataSource = value; if (!value) return; //把数据源里的值,给到子节点属性 if...

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

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

...写,就写这个shader练练手~   export default class CurveBlinnPhong extends Laya.BlinnPhongMaterial { public readonly MAIN_TEX: number = Laya.Shader3D.propertyNameToID("u_MainTex"); public readonly X_OFFSET: number = Laya.Shader3D.propertyNameToID("u_XOffset"); public readonly Y_OFFSET: numbe...

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

390. laya加载unity插件导出的场景 physics3D is not a function [ 45%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.ad...

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