C# 클래스 SSTUTools.ModelSwitchGroup

파일 보기 프로젝트 열기: shadowmage45/SSTULabs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
defaultModel string
modelNodes SSTUTools.ModelNode[]
name string
owner SSTUModelSwitch
parentGroup string
parentNode string

Private Properties

프로퍼티 타입 설명
add void
addChild void
disableGroup void
enable void
enable void
enableDefaultModel ModelSwitchData
enableGroup void
findNode ModelNode
get ModelSwitchData
get ModelSwitchData
getModelNames string[]
getModelRootTransform UnityEngine.Transform
getPersistentData string
initializeModels void
initializeRoot void
isAvailable bool
isChildAtNodeEnabled bool
load void
preInitialize void
setupNodesForModel void

공개 메소드들

메소드 설명
ModelSwitchGroup ( ConfigNode node, SSTUModelSwitch module ) : System

비공개 메소드들

메소드 설명
add ( ModelSwitchData data ) : void
addChild ( ModelSwitchGroup group ) : void
disableGroup ( ) : void

Disable this model group; recurse through children and disable them, delete all models, delete all model nodes

enable ( ModelSwitchData data ) : void
enable ( string modelName ) : void
enableDefaultModel ( ) : ModelSwitchData

Update the enabled/disabled status for all models, setting the default model to enabled==true Does not create the actual models, merely updates their status; models are created with the initializeModels() call

enableGroup ( ) : void

Enable this model group; enable on default model, links up models to nodes, upwards-recurse enable children groups

findNode ( string name ) : ModelNode
get ( int index ) : ModelSwitchData
get ( string name ) : ModelSwitchData
getModelNames ( ) : string[]

Return an array containing the names of the models for this group; to be used to populate GUI selection data

getModelRootTransform ( ) : Transform
getPersistentData ( ) : string
initializeModels ( ) : void

build currently enabled model, ensure no others are present

initializeRoot ( ) : void

To be called on all model groups. If it is a root model group it will initialize itself and any children as needed. Build model root GO, initialize model for current selection, and initialize any children that need it.

isAvailable ( ) : bool

Return true if this group should be available for GUI selection for editing; depends on if parent group is null or enabled

isChildAtNodeEnabled ( string nodeName ) : bool
load ( string data ) : void
preInitialize ( ) : void

initialize the default values for model-data; this occurs prior to load()

setupNodesForModel ( ModelSwitchData data ) : void

enable/disable nodes depending on if they are enabled/disabled for the currently enabled model

메소드 상세

ModelSwitchGroup() 공개 메소드

public ModelSwitchGroup ( ConfigNode node, SSTUModelSwitch module ) : System
node System.ConfigNode
module SSTUModelSwitch
리턴 System

프로퍼티 상세

defaultModel 공개적으로 프로퍼티

public string defaultModel
리턴 string

modelNodes 공개적으로 프로퍼티

public ModelNode[],SSTUTools modelNodes
리턴 SSTUTools.ModelNode[]

name 공개적으로 프로퍼티

public string name
리턴 string

owner 공개적으로 프로퍼티

public SSTUModelSwitch,SSTUTools owner
리턴 SSTUModelSwitch

parentGroup 공개적으로 프로퍼티

public string parentGroup
리턴 string

parentNode 공개적으로 프로퍼티

public string parentNode
리턴 string