Class SceneLayer
- Namespace
- TaleWorlds.Engine.Screens
- Assembly
- TaleWorlds.Engine.dll
public class SceneLayer : ScreenLayer, IComparable
- Inheritance
-
SceneLayer
- Implements
- Inherited Members
Constructors
SceneLayer(string, bool, bool)
public SceneLayer(string categoryId = "SceneLayer", bool clearSceneOnFinalize = true, bool autoToggleSceneView = true)
Parameters
Properties
AutoToggleSceneView
public bool AutoToggleSceneView { get; }
Property Value
ClearSceneOnFinalize
public bool ClearSceneOnFinalize { get; }
Property Value
SceneView
public SceneView SceneView { get; }
Property Value
Methods
ClearAll()
public void ClearAll()
ClearRuntimeGPUMemory(bool)
public void ClearRuntimeGPUMemory(bool remove_terrain)
Parameters
remove_terrainbool
DoNotClear(bool)
public void DoNotClear(bool value)
Parameters
valuebool
FocusTest()
public override bool FocusTest()
Returns
HitTest()
public override bool HitTest()
Returns
HitTest(Vector2)
public override bool HitTest(Vector2 position)
Parameters
positionVector2
Returns
OnActivate()
protected override void OnActivate()
OnDeactivate()
protected override void OnDeactivate()
OnFinalize()
protected override void OnFinalize()
ProjectedMousePositionOnGround(out Vec3, out Vec3, bool, BodyFlags, bool)
public bool ProjectedMousePositionOnGround(out Vec3 groundPosition, out Vec3 groundNormal, bool mouseVisible, BodyFlags excludeBodyOwnerFlags, bool checkOccludedSurface)
Parameters
groundPositionVec3groundNormalVec3mouseVisibleboolexcludeBodyOwnerFlagsBodyFlagscheckOccludedSurfacebool
Returns
ReadyToRender()
public bool ReadyToRender()
Returns
RefreshGlobalOrder(ref int)
protected override void RefreshGlobalOrder(ref int currentOrder)
Parameters
currentOrderint
ScreenPointToViewportPoint(Vec2)
public Vec2 ScreenPointToViewportPoint(Vec2 position)
Parameters
positionVec2
Returns
SetCamera(Camera)
public void SetCamera(Camera camera)
Parameters
cameraCamera
SetCleanScreenUntilLoadingDone(bool)
public void SetCleanScreenUntilLoadingDone(bool value)
Parameters
valuebool
SetFocusedShadowmap(bool, ref Vec3, float)
public void SetFocusedShadowmap(bool enable, ref Vec3 center, float radius)
Parameters
SetPostfxConfigParams(int)
public void SetPostfxConfigParams(int value)
Parameters
valueint
SetPostfxFromConfig()
public void SetPostfxFromConfig()
SetRenderWithPostfx(bool)
public void SetRenderWithPostfx(bool value)
Parameters
valuebool
SetScene(Scene)
public void SetScene(Scene scene)
Parameters
sceneScene
SetSceneUsesContour(bool)
public void SetSceneUsesContour(bool value)
Parameters
valuebool
SetSceneUsesShadows(bool)
public void SetSceneUsesShadows(bool value)
Parameters
valuebool
SetSceneUsesSkybox(bool)
public void SetSceneUsesSkybox(bool value)
Parameters
valuebool
SetShadowmapResolutionMultiplier(float)
public void SetShadowmapResolutionMultiplier(float value)
Parameters
valuefloat
TranslateMouse(ref Vec3, ref Vec3, float)
public void TranslateMouse(ref Vec3 worldMouseNear, ref Vec3 worldMouseFar, float maxDistance = -1)
Parameters
WorldPointToScreenPoint(Vec3)
public Vec2 WorldPointToScreenPoint(Vec3 position)
Parameters
positionVec3
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).