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

大约有 1,732 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0057 秒)

331. 官方案例里摄像机绕物体旋转脚本的问题 [ 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

332. list里面可以加入多个view吗? [ 75%]

...laya.ui.View; import laya.utils.Browser; import laya.utils.Handler; public class LayaAirDemo { private var list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loade...

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

333. 灯光-点光 [ 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_示例 发布时间: 20241002

334. 其他引擎的Demo-Example_23 [ 75%]

...wHeight = Browser.height, lasers = [], tick = 0, frequency = 80, type = 0; class PIXI_Example_23 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(viewWidth, viewHeight, WebGL); Laya.stage.ali...

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

335. laya.components.Animation2DEvent_API3.0 [ 75%]

... exported Menu Globals "laya/components/Animation2DEvent" Animation2DEvent Class Animation2DEvent Animation2DEvent 类用于实现动画事件。 Hierarchy Animation2DEvent Index Constructors constructor Properties eventName params time Constructors constructor new Animation2DEvent(): Animation2DEve...

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

336. Sprite-旋转缩放 [ 74%]

...ya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stag...

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

337. laya.d3.component.volume.reflectionprobe.ReflectionProbeManager_API3.0 [ 74%]

...nent/Volume/reflectionProbe/ReflectionProbeManager" ReflectionProbeManager Class ReflectionProbeManager ReflectionProbeManager 类用于反射探针管理 Hierarchy ReflectionProbeManager Implements IVolumeManager Index Constructors constructor Accessors sceneReflectionProbe Methods _updateRenderObj...

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

338. laya.d3.graphics.StaticBatchManager_API3.0 [ 74%]

...rted Menu Globals "laya/d3/graphics/StaticBatchManager" StaticBatchManager Class StaticBatchManager StaticBatchManager 类用于静态批处理管理的父类。 Hierarchy StaticBatchManager Index Constructors constructor Methods combine Constructors constructor new StaticBatchManager(): StaticBatch...

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

339. 文本基础样式(ActionScript-LayaAir基础篇(AS3)-文本) [ 74%]

...ng) ![2.png](img/2.png) ```java package { import laya.display.Text; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var txt:Text = new Text(); txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } ``` 这个时候我们就...

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

340. 输入设备-指南针 [ 74%]

...ce/kd.png", compassImg, degreesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL)...

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