大约有 1,125 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0055 秒)
Laya_社区(426) Laya3.0_api(324) Laya2.0_api(157) laya_api(90) Laya2.0_文档(47) Laya3.0_文档(35) Laya_示例(32) Laya2.0_示例(14)
射线检测报错,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
...(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
...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
...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
...,建议用脚本方式实现,比如子弹脚本。 */ 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
...){\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
...口类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
...s.outHitInfo.distance 一直等于-1? -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画...
来源: Laya_社区 发布时间: 20171113
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
....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