Game Entity class.
Inherits NativeObject.
|
| UIntPtr | GetScenePointer () |
| |
| override string | ToString () |
| |
| void | ClearEntityComponents (bool resetAll, bool removeScripts, bool deleteChildEntities) |
| |
| void | ClearComponents () |
| |
| void | ClearOnlyOwnComponents () |
| |
| bool | CheckResources (bool addToQueue, bool checkFaceResources) |
| |
| void | SetMobility (Mobility mobility) |
| |
| Mobility | GetMobility () |
| |
| void | AddMesh (Mesh mesh, bool recomputeBoundingBox=true) |
| |
| void | AddMultiMeshToSkeleton (MetaMesh metaMesh) |
| |
| void | AddMultiMeshToSkeletonBone (MetaMesh metaMesh, sbyte boneIndex) |
| |
| void | SetColorToAllMeshesWithTagRecursive (uint color, string tag) |
| |
| IEnumerable< Mesh > | GetAllMeshesWithTag (string tag) |
| |
| void | SetColor (uint color1, uint color2, string meshTag) |
| |
| uint | GetFactorColor () |
| |
| void | SetFactorColor (uint color) |
| |
| void | SetAsReplayEntity () |
| |
| void | SetClothMaxDistanceMultiplier (float multiplier) |
| |
| void | RemoveMultiMeshFromSkeleton (MetaMesh metaMesh) |
| |
| void | RemoveMultiMeshFromSkeletonBone (MetaMesh metaMesh, sbyte boneIndex) |
| |
| bool | RemoveComponentWithMesh (Mesh mesh) |
| |
| void | AddComponent (GameEntityComponent component) |
| |
| bool | HasComponent (GameEntityComponent component) |
| |
| bool | IsInEditorScene () |
| |
| bool | RemoveComponent (GameEntityComponent component) |
| |
| string | GetGuid () |
| |
| bool | IsGuidValid () |
| |
| void | SetEnforcedMaximumLodLevel (int lodLevel) |
| |
| float | GetLodLevelForDistanceSq (float distSq) |
| |
| void | GetQuickBoneEntitialFrame (sbyte index, out MatrixFrame frame) |
| |
| void | UpdateVisibilityMask () |
| |
| void | CallScriptCallbacks (bool registerScriptComponents) |
| |
| bool | IsGhostObject () |
| |
| void | CreateAndAddScriptComponent (string name, bool callScriptCallbacks) |
| |
| void | RemoveScriptComponent (UIntPtr scriptComponent, int removeReason) |
| |
| void | SetEntityEnvMapVisibility (bool value) |
| |
| bool | HasScene () |
| |
| bool | HasScriptComponent (string scName) |
| |
| IEnumerable< ScriptComponentBehavior > | GetScriptComponents () |
| |
| IEnumerable< T > | GetScriptComponents< T > () |
| |
| bool | HasScriptOfType< T > () |
| |
| GameEntity | GetFirstChildEntityWithTag (string tag) |
| |
| bool | HasScriptOfType (Type t) |
| |
| T | GetFirstScriptOfTypeInFamily< T > () |
| |
| T | GetFirstScriptOfType< T > () |
| |
| T | GetFirstScriptOfTypeRecursive< T > () |
| |
| int | GetScriptCountOfTypeRecursive< T > () |
| |
| void | SetAlpha (float alpha) |
| |
| void | SetVisibilityExcludeParents (bool visible) |
| |
| void | SetReadyToRender (bool ready) |
| |
| bool | GetVisibilityExcludeParents () |
| |
| bool | IsVisibleIncludeParents () |
| |
| UInt32 | GetVisibilityLevelMaskIncludingParents () |
| |
| bool | GetEditModeLevelVisibility () |
| |
| void | Remove (int removeReason) |
| |
| void | SetUpgradeLevelMask (UpgradeLevelMask mask) |
| |
| UpgradeLevelMask | GetUpgradeLevelMask () |
| |
| UpgradeLevelMask | GetUpgradeLevelMaskCumulative () |
| |
| int | GetUpgradeLevelOfEntity () |
| |
| string | GetOldPrefabName () |
| |
| string | GetPrefabName () |
| |
| void | CopyScriptComponentFromAnotherEntity (GameEntity otherEntity, string scriptName) |
| |
| void | SetFrame (ref MatrixFrame frame, bool isTeleportation=true) |
| |
| void | SetLocalFrame (ref MatrixFrame frame, bool isTeleportation) |
| |
| void | SetClothComponentKeepState (MetaMesh metaMesh, bool state) |
| |
| void | SetClothComponentKeepStateOfAllMeshes (bool state) |
| |
| void | SetPreviousFrameInvalid () |
| |
| MatrixFrame | GetFrame () |
| |
| void | GetLocalFrame (out MatrixFrame frame) |
| |
| MatrixFrame | GetLocalFrame () |
| |
| MatrixFrame | GetGlobalFrame () |
| |
| MatrixFrame | GetGlobalFrameImpreciseForFixedTick () |
| |
| MatrixFrame | ComputePreciseGlobalFrameForFixedTickSlow () |
| |
| void | SetGlobalFrame (in MatrixFrame frame, bool isTeleportation=true) |
| |
| MatrixFrame | GetPreviousGlobalFrame () |
| |
| MatrixFrame | GetBodyWorldTransform () |
| |
| MatrixFrame | GetBodyVisualWorldTransform () |
| |
| void | SetLocalPosition (Vec3 position) |
| |
| void | UpdateTriadFrameForEditor () |
| |
| void | UpdateTriadFrameForEditorForAllChildren () |
| |
| PhysicsMaterial | GetPhysicsMaterial () |
| |
| void | SetBodyFlags (BodyFlags bodyFlags) |
| |
| void | SetBodyFlagsRecursive (BodyFlags bodyFlags) |
| |
| void | AddBodyFlags (BodyFlags bodyFlags, bool applyToChildren=true) |
| |
| void | RemoveBodyFlags (BodyFlags bodyFlags, bool applyToChildren=true) |
| |
| Vec3 | GetGlobalScale () |
| |
| Vec3 | GetLocalScale () |
| |
| void | SetAnimationSoundActivation (bool activate) |
| |
| void | CopyComponentsToSkeleton () |
| |
| void | AddMeshToBone (sbyte boneIndex, Mesh mesh) |
| |
| void | ActivateRagdoll () |
| |
| void | PauseSkeletonAnimation () |
| |
| void | ResumeSkeletonAnimation () |
| |
| bool | IsSkeletonAnimationPaused () |
| |
| sbyte | GetBoneCount () |
| |
| float | GetWaterLevelAtPosition (Vec2 position, bool useWaterRenderer, bool checkWaterBodyEntities) |
| |
| MatrixFrame | GetBoneEntitialFrameWithIndex (sbyte boneIndex) |
| |
| MatrixFrame | GetBoneEntitialFrameWithName (string boneName) |
| |
| void | AddTag (string tag) |
| |
| void | RemoveTag (string tag) |
| |
| bool | HasTag (string tag) |
| |
| void | AddChild (GameEntity gameEntity, bool autoLocalizeFrame=false) |
| | Adds the child.
|
| |
| void | RemoveChild (GameEntity childEntity, bool keepPhysics, bool keepScenePointer, bool callScriptCallbacks, int removeReason) |
| |
| void | BreakPrefab () |
| |
| GameEntity | GetChild (int index) |
| |
| bool | HasComplexAnimTree () |
| |
| void | AddMultiMesh (MetaMesh metaMesh, bool updateVisMask=true) |
| |
| bool | RemoveMultiMesh (MetaMesh metaMesh) |
| |
| int | GetComponentCount (ComponentType componentType) |
| |
| void | AddAllMeshesOfGameEntity (GameEntity gameEntity) |
| |
| void | SetFrameChanged () |
| |
| GameEntityComponent | GetComponentAtIndex (int index, ComponentType componentType) |
| |
| MetaMesh | GetMetaMesh (int metaMeshIndex) |
| |
| ClothSimulatorComponent | GetClothSimulator (int clothSimulatorIndex) |
| |
| void | SetVectorArgument (float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3) |
| |
| void | SetMaterialForAllMeshes (Material material) |
| |
| bool | AddLight (Light light) |
| |
| Light | GetLight () |
| |
| void | AddParticleSystemComponent (string particleid) |
| |
| void | RemoveAllParticleSystems () |
| |
| bool | CheckPointWithOrientedBoundingBox (Vec3 point) |
| |
| void | PauseParticleSystem (bool doChildren) |
| |
| void | ResumeParticleSystem (bool doChildren) |
| |
| void | BurstEntityParticle (bool doChildren) |
| |
| void | SetRuntimeEmissionRateMultiplier (float emissionRateMultiplier) |
| |
| BoundingBox | GetLocalBoundingBox () |
| |
| BoundingBox | GetGlobalBoundingBox () |
| |
| Vec3 | GetBoundingBoxMin () |
| |
| void | SetHasCustomBoundingBoxValidationSystem (bool hasCustomBoundingBox) |
| |
| void | ValidateBoundingBox () |
| |
| Vec3 | GetBoundingBoxMax () |
| |
| void | UpdateGlobalBounds () |
| |
| void | RecomputeBoundingBox () |
| |
| float | GetBoundingBoxRadius () |
| |
| void | SetBoundingboxDirty () |
| |
| Vec3 | ComputeGlobalPhysicsBoundingBoxMinMax () |
| |
| void | SetContourColor (uint? color, bool alwaysVisible=true) |
| |
| bool | GetHasFrameChanged () |
| |
| Mesh | GetFirstMesh () |
| |
| int | GetAttachedNavmeshFaceCount () |
| |
| void | GetAttachedNavmeshFaceRecords (PathFaceRecord[] faceRecords) |
| |
| void | SetExternalReferencesUsage (bool value) |
| |
| void | SetMorphFrameOfComponents (float value) |
| |
| void | AddEditDataUserToAllMeshes (bool entityComponents, bool skeletonComponents) |
| |
| void | ReleaseEditDataUserToAllMeshes (bool entityComponents, bool skeletonComponents) |
| |
| void | GetCameraParamsFromCameraScript (Camera cam, ref Vec3 dofParams) |
| |
| void | GetMeshBendedFrame (MatrixFrame worldSpacePosition, ref MatrixFrame output) |
| |
| void | ComputeTrajectoryVolume (float missileSpeed, float verticalAngleMaxInDegrees, float verticalAngleMinInDegrees, float horizontalAngleRangeInDegrees, float airFrictionConstant) |
| |
| void | SetAnimTreeChannelParameterForceUpdate (float phase, int channelNo) |
| |
| void | ChangeMetaMeshOrRemoveItIfNotExists (MetaMesh entityMetaMesh, MetaMesh newMetaMesh) |
| |
| void | SetUpdateValidtyOnFrameChangedOfFacesWithId (int faceGroupId, bool updateValidity) |
| |
| void | AttachNavigationMeshFaces (int faceGroupId, bool isConnected, bool isBlocker=false, bool autoLocalize=false, bool finalizeBlockerConvexHullComputation=false, bool updateEntityFrame=true) |
| |
| void | DetachAllAttachedNavigationMeshFaces () |
| |
| void | UpdateAttachedNavigationMeshFaces () |
| |
| void | RemoveSkeleton () |
| |
| void | RemoveAllChildren () |
| |
| IEnumerable< GameEntity > | GetChildren () |
| |
| IEnumerable< GameEntity > | GetEntityAndChildren () |
| |
| void | GetChildrenRecursive (ref List< GameEntity > children) |
| |
| void | GetChildrenWithTagRecursive (List< GameEntity > children, string tag) |
| |
| bool | IsSelectedOnEditor () |
| |
| void | SelectEntityOnEditor () |
| |
| void | DeselectEntityOnEditor () |
| |
| void | SetAsPredisplayEntity () |
| |
| void | RemoveFromPredisplayEntity () |
| |
| void | SetNativeScriptComponentVariable (string className, string fieldName, ref ScriptComponentFieldHolder data, RglScriptFieldType variableType) |
| |
| void | SetManualGlobalBoundingBox (Vec3 boundingBoxStartGlobal, Vec3 boundingBoxEndGlobal) |
| |
| bool | RayHitEntity (Vec3 rayOrigin, Vec3 rayDirection, float maxLength, ref float resultLength) |
| |
| bool | RayHitEntityWithNormal (Vec3 rayOrigin, Vec3 rayDirection, float maxLength, ref Vec3 resultNormal, ref float resultLength) |
| |
| void | GetNativeScriptComponentVariable (string className, string fieldName, ref ScriptComponentFieldHolder data, RglScriptFieldType variableType) |
| |
| void | SetCustomClipPlane (Vec3 clipPosition, Vec3 clipNormal, bool setForChildren) |
| |
| float | GetBoundingBoxLongestHalfDimension () |
| |
| BoundingBox | ComputeBoundingBoxFromLongestHalfDimension (float longestHalfDimensionCoefficient) |
| |
| BoundingBox | ComputeBoundingBoxIncludeChildren () |
| |
| void | SetManualLocalBoundingBox (in BoundingBox boundingBox) |
| |
| void | RelaxLocalBoundingBox (in BoundingBox boundingBox) |
| |
| void | SetCullMode (MBMeshCullingMode cullMode) |
| |
| GameEntity | GetFirstChildEntityWithTagRecursive (string tag) |
| |
| override bool | Equals (object obj) |
| |
| override int | GetHashCode () |
| |
| void | SetDoNotCheckVisibility (bool value) |
| |
| void | SetBoneFrameToAllMeshes (int boneIndex, in MatrixFrame frame) |
| |
| Vec2 | GetGlobalWindStrengthVectorOfScene () |
| |
| Vec2 | GetGlobalWindVelocityOfScene () |
| |
| Vec3 | GetLastFinalRenderCameraPositionOfScene () |
| |
| void | SetForceDecalsToRender (bool value) |
| |
| void | SetForceNotAffectedBySeason (bool value) |
| |
| bool | CheckIsPrefabLinkRootPrefab (int depth) |
| |
| void | SetupAdditionalBoneBufferForMeshes (int boneCount) |
| |
| void | DeleteEmptyShape (UIntPtr shape1, UIntPtr shape2) |
| |
| UIntPtr | CreateEmptyPhysxShape (bool isVariable, int physxMaterialIndex) |
| |
| void | SwapPhysxShapeInEntity (UIntPtr oldShape, UIntPtr newShape, bool isVariable) |
| |
|
| static GameEntity | CreateFromWeakEntity (WeakGameEntity weakEntity) |
| |
| static GameEntity | CreateEmpty (Scene scene, bool isModifiableFromEditor=true, bool createPhysics=true, bool callScriptCallbacks=true) |
| |
| static GameEntity | CreateEmptyDynamic (Scene scene, bool isModifiableFromEditor=true) |
| |
| static GameEntity | CreateEmptyWithoutScene () |
| |
| static GameEntity | CopyFrom (Scene scene, GameEntity entity, bool createPhysics=true, bool callScriptCallbacks=true) |
| |
| static GameEntity | CopyFrom (Scene scene, WeakGameEntity entity, bool createPhysics=true, bool callScriptCallbacks=true) |
| |
| static GameEntity | Instantiate (Scene scene, string prefabName, bool callScriptCallbacks, bool createPhysics=true, string scriptInclusingTag="") |
| | Instantiates a new instance of GameEntity constructed from the given prefab.
|
| |
| static GameEntity | Instantiate (Scene scene, string prefabName, MatrixFrame frame, bool callScriptCallbacks=true, string scriptInclusingTag="") |
| | Instantiates a new instance of GameEntity constructed from the given prefab.
|
| |
| static bool | PrefabExists (string name) |
| |
| static GameEntity | CopyFromPrefab (GameEntity prefab) |
| |
| static GameEntity | CopyFromPrefab (WeakGameEntity prefab) |
| |
| static bool | operator== (GameEntity gameEntity, WeakGameEntity weakGameEntity) |
| |
| static bool | operator!= (GameEntity gameEntity, WeakGameEntity weakGameEntity) |
| |
| static bool | operator!= (GameEntity gameEntity1, GameEntity gameEntity2) |
| |
| static bool | operator== (GameEntity gameEntity1, GameEntity gameEntity2) |
| |
| static UIntPtr | CreatePhysxCookingInstance () |
| |
| static void | DeletePhysxCookingInstance (UIntPtr pointer) |
| |
| static void | CookTrianglePhysxMesh (UIntPtr cookingInstancePointer, UIntPtr shapePointer, UIntPtr quadPinnedPointer, int physicsMaterial, int numberOfVertices, UIntPtr indicesPinnedPointer, int numberOfIndices) |
| |