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

Method GetActorNode

Source/Editor/Modules/SceneModule.cs:713–720  ·  view source on GitHub ↗

Gets the actor node. The actor. Found actor node or null if missing. Actor may not be linked to the scene tree so node won't be found in that case.

(Actor actor)

Source from the content-addressed store, hash-verified

711 /// <param name="actor">The actor.</param>
712 /// <returns>Found actor node or null if missing. Actor may not be linked to the scene tree so node won't be found in that case.</returns>
713 public ActorNode GetActorNode(Actor actor)
714 {
715 if (actor == null)
716 return null;
717
718 // ActorNode has the same ID as actor does
719 return SceneGraphFactory.FindNode(actor.ID) as ActorNode;
720 }
721
722 /// <summary>
723 /// Gets the actor node.

Callers 13

OnAddColliderMethod · 0.80
DoMethod · 0.80
SelectMethod · 0.80
SpawnMethod · 0.80
ConvertMethod · 0.80
FromDragDataMethod · 0.80
CreateDiffTreeMethod · 0.80
OnMouseUpMethod · 0.80
OnDragDropMethod · 0.80
EndPilotMethod · 0.80
UpdateCameraPreviewMethod · 0.80

Calls 1

FindNodeMethod · 0.45

Tested by

no test coverage detected