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_terrain
bool
DoNotClear(bool)
public void DoNotClear(bool value)
Parameters
value
bool
FocusTest()
public override bool FocusTest()
Returns
HitTest()
public override bool HitTest()
Returns
HitTest(Vector2)
public override bool HitTest(Vector2 position)
Parameters
position
Vector2
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
groundPosition
Vec3groundNormal
Vec3mouseVisible
boolexcludeBodyOwnerFlags
BodyFlagscheckOccludedSurface
bool
Returns
ReadyToRender()
public bool ReadyToRender()
Returns
RefreshGlobalOrder(ref int)
protected override void RefreshGlobalOrder(ref int currentOrder)
Parameters
currentOrder
int
ScreenPointToViewportPoint(Vec2)
public Vec2 ScreenPointToViewportPoint(Vec2 position)
Parameters
position
Vec2
Returns
SetCamera(Camera)
public void SetCamera(Camera camera)
Parameters
camera
Camera
SetCleanScreenUntilLoadingDone(bool)
public void SetCleanScreenUntilLoadingDone(bool value)
Parameters
value
bool
SetFocusedShadowmap(bool, ref Vec3, float)
public void SetFocusedShadowmap(bool enable, ref Vec3 center, float radius)
Parameters
SetPostfxConfigParams(int)
public void SetPostfxConfigParams(int value)
Parameters
value
int
SetPostfxFromConfig()
public void SetPostfxFromConfig()
SetRenderWithPostfx(bool)
public void SetRenderWithPostfx(bool value)
Parameters
value
bool
SetScene(Scene)
public void SetScene(Scene scene)
Parameters
scene
Scene
SetSceneUsesContour(bool)
public void SetSceneUsesContour(bool value)
Parameters
value
bool
SetSceneUsesShadows(bool)
public void SetSceneUsesShadows(bool value)
Parameters
value
bool
SetSceneUsesSkybox(bool)
public void SetSceneUsesSkybox(bool value)
Parameters
value
bool
SetShadowmapResolutionMultiplier(float)
public void SetShadowmapResolutionMultiplier(float value)
Parameters
value
float
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
position
Vec3
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).