C# Class Entitas.Unity.VisualDebugging.EntityDrawer

Afficher le fichier Open project: sschmid/Entitas-CSharp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static CreateDefault ( Type type, object &defaultValue ) : bool
type System.Type
defaultValue object
Résultat bool

DidValueChange() public static méthode

public static DidValueChange ( object value, object newValue ) : bool
value object
newValue object
Résultat bool

DrawAndGetNewValue() public static méthode

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
Résultat object

DrawAndSetElement() public static méthode

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
Résultat void

DrawComponent() public static méthode

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

DrawComponents() public static méthode

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

DrawEntity() public static méthode

public static DrawEntity ( Context context, System.Entity entity ) : void
context Context
entity System.Entity
Résultat void

DrawMultipleEntities() public static méthode

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

Initialize() public static méthode

public static Initialize ( ) : void
Résultat void