The '''RefEditor''' component is used internally by [[Inspector|inspectors]] to show the human readable name of any [[Type:IWorldElement|IWorldElement]]. Whenever you are looking at a field and see a text like "Enabled on ObjectRoot on ComponentHolder", that description is generated by this component. This can be used to identify fields in the process of [[Ref Hacking]] which is one of the [[Things to Avoid]]
A ref editor is used internally by [[Inspector|inspectors]] to show the human readable name of any [[Type:IWorldElement|IWorldElement]]. Whenever you are looking at a field and see a text like "Enabled on ObjectRoot on ComponentHolder", that description is generated by this component. This can be used to identify fields in the process of [[Ref Hacking]] which is one of the [[Things to Avoid]]
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|_targetRef|{{RootFieldType|RelayRef`1|[[Type:ISyncRef|ISyncRef]]}}|TypeAdv0=true| The reference to generate a short description for
|_targetRef|{{RootFieldType|RelayRef`1|[[Type:ISyncRef|ISyncRef]]}}|TypeAdv0=true| The reference to generate a short description for
|RemovePressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the removed button is touched.
|OpenInspectorButton:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the open inspector button is touched.
|OpenWorkerInspectorButton:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the open worker inspector (single component inspector) button is touched.
|SetReference:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the set reference button is touched.
}}
}}
== Behavior ==
== Usage ==
Button is not required for the <code>_textDrive</code> to fill with the description of <code>_targetRef</code>
Button is not required for the <code>_textDrive</code> to fill with the description of <code>_targetRef</code>
The RefEditor component is used internally by inspectors to show the human readable name of any IWorldElement. Whenever you are looking at a field and see a text like "Enabled on ObjectRoot on ComponentHolder", that description is generated by this component. This can be used to identify fields in the process of Ref Hacking which is one of the Things to Avoid