MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetTooltip

Method GetTooltip

Source/Editor/Utilities/Utils.cs:179–192  ·  view source on GitHub ↗
(SceneObject obj)

Source from the content-addressed store, hash-verified

177 }
178
179 internal static string GetTooltip(SceneObject obj)
180 {
181 var actor = obj as Actor;
182 var str = actor != null ? actor.Name : TypeUtils.GetObjectType(obj).Name;
183 var o = obj.Parent;
184 while (o)
185 {
186 str = o.Name + " -> " + str;
187 o = o.Parent;
188 }
189 if (actor != null)
190 str += string.Format(" ({0})", TypeUtils.GetObjectType(obj).Name);
191 return str;
192 }
193
194 internal static void GetActorsTree(List<Actor> list, Actor a)
195 {

Callers 11

BuildEntriesDefaultMethod · 0.45
TypeItemViewMethod · 0.45
ActorItemViewMethod · 0.45
ShowButtonsMethod · 0.45
InitializeMethod · 0.45
ItemInfoMethod · 0.45
OnShowTooltipMethod · 0.45
OnGeneralMethod · 0.45

Calls 2

FormatMethod · 0.80
GetObjectTypeMethod · 0.45

Tested by

no test coverage detected