Search Issue Tracker
Fixed
Fixed in 3.1.2
Votes
1
Found in [Package]
3.1.1
Issue ID
CMCL-1606
Regression
No
Error “TargetPositionCache is inaccessible due to its protection level“ is present when implementing ICinemachineTargetGroup using TargetPositionCache
Reproduction steps:
1. Open the attached project "ReproProj"
2. Delete the “/Assets/Scripts/TargetPositionCache.cs” Script
3. Observe the Console
Expected result: No Errors exist
Actual result: Error “TargetPositionCache is inaccessible due to its protection level“ is present
Reproducible with: 3.1.1 (2022.3.44f1, 6000.0.17f1)
Could not test with: 2.10.1 (2021.3.42f1) (Assets\Scripts\TargetGroup.cs(1,13): error CS0234: The type or namespace name 'Cinemachine' does not exist in the namespace 'Unity' (are you missing an assembly reference?))
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- Modifying the “/Assets/Scripts/TargetPositionCache.cs” Script also reproduces the issue
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (fix version 3.1.2):
API added to CM 3.1.2