C# Class SSTUTools.ProceduralModel

Exibir arquivo Open project: shadowmage45/SSTULabs

Public Properties

Property Type Description
root UnityEngine.GameObject
rootName String

Protected Properties

Property Type Description
currentMaterial UnityEngine.Material
meshColliderConvex bool
meshColliderEnabled bool

Public Methods

Method Description
createModel ( ) : void
destroyModel ( ) : void
recreateModel ( ) : void
setMainTexture ( String texName ) : void
setMaterial ( Material mat ) : void
setNormalTexture ( String texName ) : void
setParent ( Transform tr ) : void

Protected Methods

Method Description
generateModel ( GameObject root ) : void
updateModelMaterial ( ) : void

Method Details

createModel() public method

public createModel ( ) : void
return void

destroyModel() public method

public destroyModel ( ) : void
return void

generateModel() protected method

protected generateModel ( GameObject root ) : void
root UnityEngine.GameObject
return void

recreateModel() public method

public recreateModel ( ) : void
return void

setMainTexture() public method

public setMainTexture ( String texName ) : void
texName String
return void

setMaterial() public method

public setMaterial ( Material mat ) : void
mat UnityEngine.Material
return void

setNormalTexture() public method

public setNormalTexture ( String texName ) : void
texName String
return void

setParent() public method

public setParent ( Transform tr ) : void
tr UnityEngine.Transform
return void

updateModelMaterial() protected method

protected updateModelMaterial ( ) : void
return void

Property Details

currentMaterial protected_oe property

protected Material,UnityEngine currentMaterial
return UnityEngine.Material

meshColliderConvex protected_oe property

protected bool meshColliderConvex
return bool

meshColliderEnabled protected_oe property

protected bool meshColliderEnabled
return bool

root public_oe property

public GameObject,UnityEngine root
return UnityEngine.GameObject

rootName public_oe property

public String rootName
return String