Initial commit

This commit is contained in:
HussienX72u
2026-07-21 08:56:10 +03:00
commit 4017028111
9410 changed files with 2150500 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
@startuml
class CanvasPlatformUI {
- platformManager : CanvasVirtualPlatformManager
- planeDropdown : TMP_Dropdown
- canvasSizeSlider : Slider
- minCanvasSize : float = 1000f
- maxCanvasSize : float = 10000f
- platformToggle : Toggle
- gridToggle : Toggle
- infoText : TextMeshProUGUI
- Start() : void
- SetupUI() : void
- OnPlaneChanged(index:int) : void
- OnCanvasSizeSliderChanged(value:float) : void
- OnCanvasWidthChanged(value:string) : void
- OnCanvasHeightChanged(value:string) : void
- UpdateCanvasSizeFields() : void
- OnPlatformToggleChanged(isOn:bool) : void
- OnGridToggleChanged(isOn:bool) : void
- UpdateInfoDisplay() : void
- Update() : void
}
MonoBehaviour <|-- CanvasPlatformUI
@enduml
@@ -0,0 +1,39 @@
@startuml
enum PlaneAxis {
XZ= 0,
XY= 1,
YZ= 2,
}
class VirtualPlane {
+ planeAxis : PlaneAxis
+ canvasGrid : GameObject
+ colliderObject : GameObject
}
class CanvasVirtualPlatformManager {
- {static} instance : CanvasVirtualPlatformManager
- virtualPlanes : VirtualPlane[]
- colliderThickness : float = 0.1f
- colliderLayer : string = "World"
- currentPlane : PlaneAxis
- platformVisible : bool = true
- Awake() : void
+ {static} getInstance() : CanvasVirtualPlatformManager
- Start() : void
- GenerateColliders() : void
- GetColliderRotation(axis:PlaneAxis) : Quaternion
+ RegenerateColliders() : void
+ SwitchToPlane(plane:PlaneAxis) : void
+ TogglePlatformVisibility(visible:bool) : void
- UpdatePlaneVisibility() : void
+ ToggleGridVisibility(visible:bool) : void
+ GetCurrentPlane() : PlaneAxis
+ IsPlatformVisible() : bool
+ GetCurrentCollider() : GameObject
+ GetCurrentCanvas() : GameObject
+ SetCanvasSize(planeAxis:PlaneAxis, width:float, height:float) : void
+ SetCurrentCanvasSize(width:float, height:float) : void
- RegenerateSingleCollider(plane:VirtualPlane) : void
+ GetCurrentCanvasSize() : Vector2
}
MonoBehaviour <|-- CanvasVirtualPlatformManager
@enduml
+16
View File
@@ -0,0 +1,16 @@
@startuml
class PlatformUI {
- platformManager : VirtualPlatformManager
- xAxisButton : Button
- yAxisButton : Button
- zAxisButton : Button
- moveUpButton : Button
- moveDownButton : Button
- moveStep : float = 1f
- gridToggle : Toggle
- Start() : void
- SetupButtons() : void
- Update() : void
}
MonoBehaviour <|-- PlatformUI
@enduml
@@ -0,0 +1,48 @@
@startuml
enum BuildAxis {
X,
Y,
Z,
}
class VirtualPlatformManager {
- {static} instance : VirtualPlatformManager
- platformThickness : float = 0.1f
- showGrid : bool = true
- gridSpacing : float = 1f
- gridExtent : int = 50
- lineWidth : float = 0.5f
- gridColor : Color
- gridMaterial : Material
- currentAxis : BuildAxis
- currentDistance : float = 0f
- gridLines : List<LineRenderer>
- currentPlatform : GameObject
- gridVisual : GameObject
- colliderObj : GameObject
- platformCollider : BoxCollider
- mainCamera : Camera
- Awake() : void
+ {static} getInstance() : VirtualPlatformManager
- Start() : void
- LateUpdate() : void
- UpdateGridPosition() : void
- UpdateColliderPosition() : void
- UpdateGridLines(center:Vector3, axis1:Vector3, axis2:Vector3) : void
+ SwitchToAxis(axis:BuildAxis) : void
+ MovePlatform(delta:float) : void
+ SetPlatformDistance(distance:float) : void
- UpdatePlatformDistance() : void
- RecreatePlatform() : void
- CreatePlatform() : void
- CreateGridVisual() : void
- SetupPlatformTransform() : void
- CreateLine(start:Vector3, end:Vector3) : LineRenderer
- GetPlatformOrigin() : Vector3
- GetPlatformAxes(axis1:Vector3, axis2:Vector3) : void
+ ToggleGridVisibility(visible:bool) : void
+ GetCurrentAxis() : BuildAxis
+ GetCurrentDistance() : float
+ GetPlatformPosition() : Vector3
}
MonoBehaviour <|-- VirtualPlatformManager
@enduml