Page MenuHomeFeedback Tracker

Private variables in scripts
Feedback, NormalPublic

Description

Private variables is huge pain for modding.

Example:
Since in our community we use custom observer mode I want to hide attachment widget:


But I can't do it since m_Widget variable in SCR_AttachManualCameraComponent class is private. (Required full component copy)
Can we just get rid of any private variables in scripts, this make no sence for me, just modding restriction.

Details

Severity
Trivial
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10
Category
General

Event Timeline

JiraF created this task.Jul 5 2024, 5:33 PM
Geez changed the task status from New to Feedback.Jul 8 2024, 3:48 PM
Geez added a subscriber: Geez.Mon, Nov 11, 10:58 AM

Hello JiraF.
modded classes can access private variables too.
Ifthe private variable is on a parent class, then to mod that class instead.