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

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

641. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 66%]

...之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { public function CustomMaterial() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义...

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

642. 射线检测-碰撞器混合 [ 66%]

...eyMeshSprite3D.addComponent(DrawBoxColliderScript); this.debug = false; } }class ColiderDemo { /**键盘的上下左右控制猴子位移**/ private scene:Laya.Scene; private camera:Laya.Camera; private layaMonkey:Laya.Sprite3D; private layaMonkeyMeshSprite3D:Laya.SkinnedMeshSprite3D; private _tempU...

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

643. ScrollRect设置会引起其他的UI资源无法正在显示 [ 66%]

...ort laya.ui.Image; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,...

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

644. laya.components.AnimationClip2D_API3.0 [ 66%]

...ly exported Menu Globals "laya/components/AnimationClip2D" AnimationClip2D Class AnimationClip2D Hierarchy Resource AnimationClip2D Index Constructors constructor Properties _id destroyedImmediately islooping lock name url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount...

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

645. laya加载unity插件导出的场景 physics3D is not a function [ 66%]

...,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; L...

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

646. laya.display.Node_API3.0 [ 66%]

...ll Inherited Externals Only exported Menu Globals "laya/display/Node" Node Class Node Node 类是可放在显示列表中的所有对象的基类。该显示列表管理 Laya 运行时中显示的所有对象。使用 Node 类排列显示列表中的显示对象。Node 对象可以有子显示对象...

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

647. UI运行时 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...建好了UI组件脚本,而后添加的代码如下所示: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on...

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

648. 看一下这是什么问题,运行报错 [ 66%]

...l1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下   附件 : --> 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

649. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 66%]

...i } from "./ui/layaMaxUI"; //继承BitmapFont的ui场景类 export default class AllText extends ui.examples.text.BitmapFontUI { //给自己注册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** *...

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

650. 又是语法问题 [ 66%]

...下载看看 可能是不是修改忘记上传了 GraphicAnimation类里 class GraphicNode Matrix没有import 虽然不是什么大问题 但希望可以避免 引擎组大大辛苦了 kukucck • 2017-08-29 15:30 BlurFilterActionGL

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