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

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

1071. 加载-错误处理和进度 [ 68%]

...ader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls: Array = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; La...

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

1072. 文本基础样式(TypeScript-LayaAir基础篇(TS)-文本) [ 68%]

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

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

1073. laya.d3.physics.PhysicsTriggerComponent [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames PhysicsTriggerComponentProperties | Methods Packagelaya.d3.physicsClasspublic class PhysicsTriggerComponentInheritancePhysicsTriggerComponent PhysicsComponent Component ObjectSubclasses PhysicsCollider, Rigidbody3D Physi...

来源: Laya2.0_api 发布时间: 20190513

1074. 音频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...下面给出一个示例代码,实现脚本控制SoundNode: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.SoundNode }) public sound: Laya.SoundNode; constructor() { super(); } /** * 组件被...

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

1075. laya.physics.joint.RopeJoint [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RopeJointProperties | Methods Packagelaya.physics.jointClasspublic class RopeJointInheritanceRopeJoint JointBase Component Object 绳索关节:限制了两个点之间的最大距离。它能够阻止连接的物体之...

来源: Laya2.0_api 发布时间: 20190513

1076. laya.d3.graphics.VertexPositionNormalTexture0Texture1 [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames VertexPositionNormalTexture0Texture1Properties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalTexture0Texture1InheritanceVertexPositionNormalTexture0Texture1 ObjectImplements IVertex VertexPositio...

来源: laya_api 发布时间: 20170929

1077. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 68%]

...ya.events.Event; import laya.webgl.WebGL; /** * ... * @author ww */ public class SkeletonTempletSample { public var templet:Templet; public function SkeletonTempletSample() { WebGL.enable(); Laya.init(1000, 900); //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseCom...

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

1078. Laya 绑定显示内容到骨骼动画 [ 68%]

...加的内容:   1. 可绑定内容的骨骼动画   export default class BindSkeleton extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.i...

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

1079. 自定义shader-shader预编译 [ 68%]

...ithShaderDefine(73 - Laya.ShaderCompile3D.SHADERDEFINE_HIGHPRECISION,4,20);class ShaderPrecompile { constructor() { Laya3D.init(0, 0, true); //开启Shader编译调试模式,可在输出宏定义编译值。 Laya.ShaderCompile3D.debugMode = true; var sc: Laya.ShaderCompile3D = Laya.ShaderCompile3D...

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

1080. 能不能让LayaFlash支持原生的条件编译 [ 68%]

...n.swf", mimeType="application/octet-stream")]     private const _Ui_SWF:Class;   } CONFIG::en{     [Embed(source="ui_en.swf", mimeType="application/octet-stream")]     private const _Ui_SWF:Class; } 3.这样就表示英文版本我只嵌入英文的ui_en.swf 如果使用现有的宏编译...

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