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

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

111. 粒子动画透明度问题 [ 50%]

...............................  //class laya.particle.shader.ParticleShader extends laya.webgl.shader.Shader var ParticleShader=(function(_super){     function ParticleShader(){         ParticleShader.__super.call(this,ParticleShader.vs,ParticleShader.ps,"ParticleShader");     }   ...

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

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

...脚本方式实现,比如子弹脚本。 */ 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.lh" private ...

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

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

....AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public targe...

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

114. laya.ui.Tree_API3.0 [ 48%]

... import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item extends Box { public function Item() { this.name = "render"; this.right = 0; this.left = 0; var selectBox:Clip = new Clip("resource/ui/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; selectBox.height = 24; selectBox...

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

115. 网络通信 · LayaAir3文档 · LAYABOX [ 47%]

...。下面是一个简单的继承的示范: class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http.up...

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

116. 3D中摄像机绕物体旋转该如何实现? [ 47%]

....AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public targe...

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

117. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //共享材质,用于合批 public batchMat: Laya.Material; //颜色数目 private _colorNums = 20; //精灵数目 private _spriteNums = 200; private _createColorBufferData() { //随机给20个颜色值 ...

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

118. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...: /** * TypeScript语言的3D脚本示例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), 添加物理...

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

119. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 46%]

...一个简单的继承的示范: ```typescript class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http....

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

120. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 46%]

...a package { import laya.net.HttpRequest; public class HttpRequestExtension extends HttpRequest { public function HttpRequestExtension() { super(); } public override function send(url:String, data:*=null, method:String="get", responseType:String="text", headers:Array=null):void { super.send(url,data,...

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