PackageTop Level
Classpublic class Laya3D
InheritanceLaya3D Inheritance Object

Laya3D 类用于初始化3D设置。



Public Methods
 MethodDefined By
  
创建一个 Laya3D 实例。
Laya3D
  
_getMaterialTexturePath(path:String, urlVersion:String, materialBath:String):String
[static] private
Laya3D
  
init(width:Number, height:Number, antialias:Boolean = false, alpha:Boolean = false, premultipliedAlpha:Boolean = true, stencil:Boolean = true):void
[static] 初始化Laya3D相关设置。
Laya3D
Constructor Detail
Laya3D()Constructor
public function Laya3D()

创建一个 Laya3D 实例。

Method Detail
_getMaterialTexturePath()method
public static function _getMaterialTexturePath(path:String, urlVersion:String, materialBath:String):String

private

Parameters

path:String
 
urlVersion:String
 
materialBath:String

Returns
String
init()method 
public static function init(width:Number, height:Number, antialias:Boolean = false, alpha:Boolean = false, premultipliedAlpha:Boolean = true, stencil:Boolean = true):void

初始化Laya3D相关设置。

Parameters

width:Number — 3D画布宽度。
 
height:Number — 3D画布高度。
 
antialias:Boolean (default = false)
 
alpha:Boolean (default = false)
 
premultipliedAlpha:Boolean (default = true)
 
stencil:Boolean (default = true)