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

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

951. 射线检测报错,outHitInfo.sprite3D=null; [ 52%]

射线检测报错,outHitInfo.sprite3D=null; 代码: class SceneScript extends Laya.Script{  private ray : Laya.Ray; private hit: Laya.RaycastHit; private phasorSprite3D:Laya.PhasorSpriter3D; private camera : Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene ...

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

952. list item 添加事件后无法监听 [ 52%]

...(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.Stage; var List    = Laya.List; var Handler = Laya.Handler; var WebGL   = Laya.WebGL;     (function() { // 不支持WebGL时自动切换至Canvas L...

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

953. layaairts下 如何 让动画显示在地图上面tilemap地图 [ 52%]

...02-03 0 1 分享 微博 QZONE 微信 taofljf 赞同来自: // 程序入口 class GameMain{ private tMap:Laya.TiledMap; constructor() { //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); //创建TiledMap...

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

954. laya.d3.core.material.PBRStandardMaterial_API3.0 [ 52%]

...nu Globals "laya/d3/core/material/PBRStandardMaterial" PBRStandardMaterial Class PBRStandardMaterial PBRStandardMaterial 类用于实现PBR材质。 Hierarchy PBRMaterial PBRStandardMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue ur...

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

955. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 52%]

...,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { private mat1: Laya.BlinnPhongMaterial; private newScene: Laya.Scene3D; private sMapRes = "remote/model/res/Conventional/map1.ls" private sBullRes = "remote/model/res/Conventional/bull....

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

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

...){\n" + "gl_FragColor=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(Cust...

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

957. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 51%]

...口类GameMain.ts,编写如下代码:** ```typescript // 程序入口 class GameMain{ //资源路径 private skin1:string = "checkbox.png"; private skin2:string = "checkbox.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞...

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

958. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 51%]

...s.outHitInfo.distance 一直等于-1?  -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画...

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

959. laya.ui.LayoutBox [ 51%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames LayoutBoxProperties | Methods | Events Packagelaya.uiClasspublic class LayoutBoxInheritanceLayoutBox Box UIComponent Sprite Node EventDispatcher ObjectSubclasses HBox, VBox LayoutBox 是一个布局容器类。 Public P...

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

960. 动画-旧版骨骼动画 [ 51%]

....utils.Stat; import common.CameraMoveScript; /** * ... * @author */ public class SkinAnimation_Old { private var zombie:Sprite3D; private var changeActionButton:Button; private var curStateIndex:int = 0; private var skinAniUrl:Array = [ "../../../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/...

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