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

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

321. 材质-BlinnPhong-漫反射贴图 [ 75%]

...e(this.rotation, false); earth2.transform.rotate(this.rotation, false); });class BlinnPhong_DiffuseMap { private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NON...

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

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

...导在ios浏览器表现异常 代码: module laya  {     export class Sprite_Guide      {         private width = 750;         private height = 1334;         constructor()          {             Laya3D.init(this.width, this.height); ...

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

323. TypeError: Cannot read property 'on' of null [ 75%]

...r.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprit...

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

324. laya.particle.ParticleSetting_API3.0 [ 75%]

...Only exported Menu Globals "laya/particle/ParticleSetting" ParticleSetting Class ParticleSetting ParticleSettings 类是粒子配置数据类 Hierarchy ParticleSetting Index Properties ageAddScale blendState boxEmitterCenterPosition boxEmitterSize boxEmitterVelocity boxEmitterVelocityAddVariance col...

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

325. 如何获取指定类的共有的变量名集合 ? [ 75%]

...候使用的是以下方法: public static function getPublicVarNameList($class:Class):Vector.<String> {      var vt:Vector.<String> = new Vector.<String>();       var classXml:XML=describeType($class);      var variableXmlList:* = classXml["factory"][0]["variable"];  ...

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

326. laya.d3.core.render.command.Command_API3.0 [ 75%]

...s Only exported Menu Globals "laya/d3/core/render/command/Command" Command Class Command Command 类用于创建指令。 Hierarchy Command BlitScreenQuadCMD DrawRenderCMD DrawMeshInstancedCMD Index Constructors constructor Methods recover run setContext Constructors constructor new Command(): Comma...

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

327. 文本-字符限制 [ 75%]

...aya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Restrict { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SH...

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

328. 计时器-延迟调用 [ 75%]

...aya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_CallLater { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...

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

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

...ewer); modelViewer.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&...

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

330. 灯光-点光 [ 75%]

...on, _quaternion, _position); pointLight.transform.position = _position; });class PointLightDemo { private scene: Laya.Scene; private _position: Laya.Vector3; private _quaternion: Laya.Quaternion; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screen...

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