Garry's Mod Wiki

DEntityProperties

Description

This is used internally - although you're able to use it you probably shouldn't. Unless you know what you are doing and you benefit from this panel, you should be using the DProperties instead.

A panel used by the Editable Entities system.

View source

Parent

Derives methods, etc not listed on this page from DProperties.

Events

DEntityProperties:OnEntityLost()
Called when we were editing an entity and then it became invalid (probably removed). For Override

Methods

DEntityProperties:EditVariable( string varname, table editdata )
This is used internally - although you're able to use it you probably shouldn't. Called internally by DEntityProperties:RebuildControls.
DEntityProperties:EntityLost()
This is used internally - although you're able to use it you probably shouldn't. Called internally when an entity being edited became invalid. You should use DEntityProperties:OnEntityLost instead.
DEntityProperties:RebuildControls()
This is used internally - although you're able to use it you probably shouldn't. Called internally by DEntityProperties:SetEntity to rebuild the controls.
DEntityProperties:SetEntity( Entity ent )
Sets the entity to be edited by this panel. The entity must support the Editable Entities system or nothing will happen.