C# Class TreeEditor.TreeData

Inheritance: UnityEngine.ScriptableObject
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Свойство Type Description
branchGroups TreeEditor.TreeGroupBranch[]
isInPreviewMode bool
leafGroups TreeEditor.TreeGroupLeaf[]
materialHash string
mesh UnityEngine.Mesh
nodes TreeEditor.TreeNode[]
optimizedCutoutMaterial UnityEngine.Material
optimizedSolidMaterial UnityEngine.Material
root TreeGroupRoot

Méthodes publiques

Méthode Description
AddGroup ( TreeGroup parent, System type ) : TreeGroup
AddNode ( TreeGroup g, TreeNode parent ) : TreeNode
AddNode ( TreeGroup g, TreeNode parent, bool validate ) : TreeNode
CheckExternalChanges ( ) : bool
ClearReferences ( ) : void
DeleteGroup ( TreeGroup g ) : void
DeleteNode ( TreeNode n ) : void
DeleteNode ( TreeNode n, bool validate ) : void
DuplicateGroup ( TreeGroup g ) : TreeGroup
DuplicateNode ( TreeNode n ) : TreeNode
GetAdaptiveHeightSegments ( float h, float adaptiveQuality ) : int
GetAdaptiveRadialSegments ( float r, float adaptiveQuality ) : int
GetAdaptiveSamples ( TreeGroup group, TreeNode node, float adaptiveQuality ) : List
GetGroup ( int id ) : TreeGroup
GetNode ( int id ) : TreeNode
Initialize ( ) : void
IsAncestor ( TreeGroup ancestor, TreeGroup g ) : bool
LockGroup ( TreeGroup g ) : void
OptimizeMaterial ( List materials, List vertices, List triangles ) : bool
PreviewMesh ( Matrix4x4 worldToLocalMatrix, Material &outMaterials ) : void
SetGroupParent ( TreeGroup g, TreeGroup parent ) : void
SetNodeParent ( TreeNode n, TreeNode parent ) : void
UnlockGroup ( TreeGroup g ) : void
UpdateDistribution ( int id ) : void
UpdateFrequency ( int id ) : void
UpdateMesh ( Matrix4x4 matrix, List materials, List verts, List tris, List aoSpheres, int buildFlags, float adaptiveQuality, float aoDensity ) : void
UpdateMesh ( Matrix4x4 worldToLocalMatrix, Material &outMaterials ) : void
UpdateSeed ( int id ) : void
ValidateReferences ( ) : void

Private Methods

Méthode Description
ArrayAdd ( TreeGroupBranch array, TreeGroupBranch value ) : TreeEditor.TreeGroupBranch[]
ArrayAdd ( TreeGroupLeaf array, TreeGroupLeaf value ) : TreeEditor.TreeGroupLeaf[]
ArrayAdd ( TreeGroup array, TreeGroup value ) : TreeEditor.TreeGroup[]
ArrayAdd ( TreeNode array, TreeNode value ) : TreeEditor.TreeNode[]
ArrayAdd ( int array, int value ) : int[]
ArrayRemove ( TreeGroupBranch array, TreeGroupBranch value ) : TreeEditor.TreeGroupBranch[]
ArrayRemove ( TreeGroupLeaf array, TreeGroupLeaf value ) : TreeEditor.TreeGroupLeaf[]
ArrayRemove ( TreeGroup array, TreeGroup value ) : TreeEditor.TreeGroup[]
ArrayRemove ( TreeNode array, TreeNode value ) : TreeEditor.TreeNode[]
ArrayRemove ( int array, int value ) : int[]
CopyFields ( object n, object n2 ) : void
DrawTexture ( Rect rect, Texture rgbTexture, Texture alphaTexture, Material material, Color color, int pass ) : void
ExtractOptimizedShaders ( List materials, Shader &optimizedSolidShader, Shader &optimizedCutoutShader ) : void
GetGroupAt ( int i ) : TreeGroup
GetGroupCount ( ) : int
GetNodeAt ( int i ) : TreeNode
GetNodeCount ( ) : int
UpdateShadowTexture ( Texture2D shadowTexture, int texWidth, int texHeight ) : void
UpdateTextures ( TextureAtlas atlas, List materials ) : bool
WriteOptimizedTextures ( string treeAssetPath, Texture2D textures ) : UnityEngine.Texture2D[]

Method Details

AddGroup() public méthode

public AddGroup ( TreeGroup parent, System type ) : TreeGroup
parent TreeGroup
type System
Résultat TreeGroup

AddNode() public méthode

public AddNode ( TreeGroup g, TreeNode parent ) : TreeNode
g TreeGroup
parent TreeNode
Résultat TreeNode

AddNode() public méthode

public AddNode ( TreeGroup g, TreeNode parent, bool validate ) : TreeNode
g TreeGroup
parent TreeNode
validate bool
Résultat TreeNode

CheckExternalChanges() public méthode

public CheckExternalChanges ( ) : bool
Résultat bool

ClearReferences() public méthode

public ClearReferences ( ) : void
Résultat void

DeleteGroup() public méthode

public DeleteGroup ( TreeGroup g ) : void
g TreeGroup
Résultat void

DeleteNode() public méthode

public DeleteNode ( TreeNode n ) : void
n TreeNode
Résultat void

DeleteNode() public méthode

public DeleteNode ( TreeNode n, bool validate ) : void
n TreeNode
validate bool
Résultat void

DuplicateGroup() public méthode

public DuplicateGroup ( TreeGroup g ) : TreeGroup
g TreeGroup
Résultat TreeGroup

DuplicateNode() public méthode

public DuplicateNode ( TreeNode n ) : TreeNode
n TreeNode
Résultat TreeNode

GetAdaptiveHeightSegments() public static méthode

public static GetAdaptiveHeightSegments ( float h, float adaptiveQuality ) : int
h float
adaptiveQuality float
Résultat int

GetAdaptiveRadialSegments() public static méthode

public static GetAdaptiveRadialSegments ( float r, float adaptiveQuality ) : int
r float
adaptiveQuality float
Résultat int

GetAdaptiveSamples() public static méthode

public static GetAdaptiveSamples ( TreeGroup group, TreeNode node, float adaptiveQuality ) : List
group TreeGroup
node TreeNode
adaptiveQuality float
Résultat List

GetGroup() public méthode

public GetGroup ( int id ) : TreeGroup
id int
Résultat TreeGroup

GetNode() public méthode

public GetNode ( int id ) : TreeNode
id int
Résultat TreeNode

Initialize() public méthode

public Initialize ( ) : void
Résultat void

IsAncestor() public méthode

public IsAncestor ( TreeGroup ancestor, TreeGroup g ) : bool
ancestor TreeGroup
g TreeGroup
Résultat bool

LockGroup() public méthode

public LockGroup ( TreeGroup g ) : void
g TreeGroup
Résultat void

OptimizeMaterial() public méthode

public OptimizeMaterial ( List materials, List vertices, List triangles ) : bool
materials List
vertices List
triangles List
Résultat bool

PreviewMesh() public méthode

public PreviewMesh ( Matrix4x4 worldToLocalMatrix, Material &outMaterials ) : void
worldToLocalMatrix UnityEngine.Matrix4x4
outMaterials UnityEngine.Material
Résultat void

SetGroupParent() public méthode

public SetGroupParent ( TreeGroup g, TreeGroup parent ) : void
g TreeGroup
parent TreeGroup
Résultat void

SetNodeParent() public méthode

public SetNodeParent ( TreeNode n, TreeNode parent ) : void
n TreeNode
parent TreeNode
Résultat void

UnlockGroup() public méthode

public UnlockGroup ( TreeGroup g ) : void
g TreeGroup
Résultat void

UpdateDistribution() public méthode

public UpdateDistribution ( int id ) : void
id int
Résultat void

UpdateFrequency() public méthode

public UpdateFrequency ( int id ) : void
id int
Résultat void

UpdateMesh() public méthode

public UpdateMesh ( Matrix4x4 matrix, List materials, List verts, List tris, List aoSpheres, int buildFlags, float adaptiveQuality, float aoDensity ) : void
matrix UnityEngine.Matrix4x4
materials List
verts List
tris List
aoSpheres List
buildFlags int
adaptiveQuality float
aoDensity float
Résultat void

UpdateMesh() public méthode

public UpdateMesh ( Matrix4x4 worldToLocalMatrix, Material &outMaterials ) : void
worldToLocalMatrix UnityEngine.Matrix4x4
outMaterials UnityEngine.Material
Résultat void

UpdateSeed() public méthode

public UpdateSeed ( int id ) : void
id int
Résultat void

ValidateReferences() public méthode

public ValidateReferences ( ) : void
Résultat void

Property Details

branchGroups public_oe property

public TreeGroupBranch[],TreeEditor branchGroups
Résultat TreeEditor.TreeGroupBranch[]

isInPreviewMode public_oe property

public bool isInPreviewMode
Résultat bool

leafGroups public_oe property

public TreeGroupLeaf[],TreeEditor leafGroups
Résultat TreeEditor.TreeGroupLeaf[]

materialHash public_oe property

public string materialHash
Résultat string

mesh public_oe property

public Mesh,UnityEngine mesh
Résultat UnityEngine.Mesh

nodes public_oe property

public TreeNode[],TreeEditor nodes
Résultat TreeEditor.TreeNode[]

optimizedCutoutMaterial public_oe property

public Material,UnityEngine optimizedCutoutMaterial
Résultat UnityEngine.Material

optimizedSolidMaterial public_oe property

public Material,UnityEngine optimizedSolidMaterial
Résultat UnityEngine.Material

root public_oe property

public TreeGroupRoot,TreeEditor root
Résultat TreeGroupRoot