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

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

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

...){\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

202. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 51%]

...import laya.maths.Size;     import laya.ui.Image;          public class ProcessTimer extends Sprite     {         public var img:Image;         public var maskSp:Sprite;         public var percent:Number;         public var type:String = "PROGRESS_TIMER_TYPE_RADIA...

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

203. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 50%]

...5%9F%9F%E5%BC%80%E5%8F%91/image-20190307200032836.png?lastModify=1551962708class Main { constructor() { //设置子域 Laya.isWXOpenDataContext = true; Laya.isWXPosMsg = true; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.sca...

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

204. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 50%]

... flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loade...

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

205. 网格像素线 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...以写一个Tool工具类,方便转换使用: //Tool工具类 export class Tool { private static transVertex0: Laya.Vector3 = new Laya.Vector3(); private static transVertex1: Laya.Vector3 = new Laya.Vector3(); private static transVertex2: Laya.Vector3 = new Laya.Vector3(); private static corners...

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

206. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 50%]

... import GameConfig from "./GameConfig"; import ui from "./ui/layaMaxUI"; class Main {     constructor(){         //初始化引擎         Laya3D.init(0, 0);         Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;         Laya.stage.screenMode = Laya.Stage.SCREEN_NO...

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

207. localRotationEulerY旋转位置错误 [ 50%]

...建议用脚本方式实现,比如子弹脚本。  */ export default class GameUI extends ui.test.TestSceneUI {     private mat1: Laya.BlinnPhongMaterial;     private newScene: Laya.Scene3D;     private arr: any;     constructor() {         super();      ...

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

208. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 49%]

...); // 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 Laya.init(800, 600, Web...

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

209. UI-RefreshList [ 49%]

...ya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; this.refreshList = null; /** 消息生成的当前最大id值 */ this.msgIdNow=1; /** ...

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

210. 微信小游戏提审后,提示说代码侵权 [ 49%]

...各位读者收获满满!混淆代码的思路: 1、修改所有代码Class 类名称不要重复 2、修改全部全局属性、和至少 1/3的方法名称不要重复(这部分可以写程序去批量改) 3、打乱那些基类、工具类里面的方法顺序, 举例 Class A里面有 F...

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