C# Class Entitas.Unity.VisualDebugging.EntityDrawer

显示文件 Open project: sschmid/Entitas-CSharp Class Usage Examples

Public Methods

Method Description
CreateDefault ( Type type, object &defaultValue ) : bool
DidValueChange ( object value, object newValue ) : bool
DrawAndGetNewValue ( Type memberType, string memberName, object value, System.Entity entity, int index, IComponent component ) : object
DrawAndSetElement ( Type memberType, string memberName, object value, System.Entity entity, int index, IComponent component, object>.Action setValue ) : void
DrawComponent ( bool unfoldedComponents, System.Entity entity, int index, IComponent component ) : void
DrawComponents ( Context context, System.Entity entity, bool hideInBlueprintInspector = false ) : void
DrawEntity ( Context context, System.Entity entity ) : void
DrawMultipleEntities ( Context context, System.Entity entities, bool hideInBlueprintInspector = false ) : void
Initialize ( ) : void

Private Methods

Method Description
createTexture ( int width, int height, Color color ) : Texture2D
drawAddComponentMenu ( System.Entity entity, bool hideInBlueprintInspector ) : int
drawUnsupportedType ( Type memberType, string memberName, object value ) : void
generateIDefaultInstanceCreator ( string typeName ) : void
generateITypeDrawer ( string typeName ) : void
generateTemplate ( string folder, string filePath, string template ) : void
getColoredBoxStyle ( int totalComponents, int index ) : GUIStyle
getComponentDrawer ( Type type ) : IComponentDrawer
getComponentInfos ( System.Entity entity, bool hideInBlueprintInspector ) : ComponentInfo[]
getTypeDrawer ( Type type ) : ITypeDrawer

Method Details

CreateDefault() public static method

public static CreateDefault ( Type type, object &defaultValue ) : bool
type System.Type
defaultValue object
return bool

DidValueChange() public static method

public static DidValueChange ( object value, object newValue ) : bool
value object
newValue object
return bool

DrawAndGetNewValue() public static method

public static DrawAndGetNewValue ( Type memberType, string memberName, object value, System.Entity entity, int index, IComponent component ) : object
memberType System.Type
memberName string
value object
entity System.Entity
index int
component IComponent
return object

DrawAndSetElement() public static method

public static DrawAndSetElement ( Type memberType, string memberName, object value, System.Entity entity, int index, IComponent component, object>.Action setValue ) : void
memberType System.Type
memberName string
value object
entity System.Entity
index int
component IComponent
setValue object>.Action
return void

DrawComponent() public static method

public static DrawComponent ( bool unfoldedComponents, System.Entity entity, int index, IComponent component ) : void
unfoldedComponents bool
entity System.Entity
index int
component IComponent
return void

DrawComponents() public static method

public static DrawComponents ( Context context, System.Entity entity, bool hideInBlueprintInspector = false ) : void
context Context
entity System.Entity
hideInBlueprintInspector bool
return void

DrawEntity() public static method

public static DrawEntity ( Context context, System.Entity entity ) : void
context Context
entity System.Entity
return void

DrawMultipleEntities() public static method

public static DrawMultipleEntities ( Context context, System.Entity entities, bool hideInBlueprintInspector = false ) : void
context Context
entities System.Entity
hideInBlueprintInspector bool
return void

Initialize() public static method

public static Initialize ( ) : void
return void