Comments (8)
The API has changed to pcam.limit_left = -1000.0
, etc:
The docs are still out of date
from phantom-camera.
This was done a while back, but remember the intent was due to the simplified property system where, as @ZenithStar says, you can assign the value directly to a given side. Must have forgotten to add that to the release notes.
That said, don't see a reason why having a general setter and getter where you pass both a side and a value as a parameter can't be added in again. So look into adding that in soon in a hotfix.
I did also discover a bug with setting the Limit Value
with a number, so will be doing a fix for that as well.
The docs being out-out-date is definitely an oversight, so thanks for raising that!
from phantom-camera.
Is there a changelog of function name changes between versions? I made a C# wrapper for the gd PhantomCamera and thus name changes will break without warning.
from phantom-camera.
I was considering making a list before the release, but decided not to in the end, as it would take quite some time to do. Given, writing the release notes and documentation were quite a large task alone. So didn't think it would have been worth the effort, as I imagined most wouldn't use many of the functions, and so would make for a relatively painless transition.
What I didn't know was that creating C# wrappers was a thing that people did, let alone something you could do, until yesterday…
from phantom-camera.
set_limit
and get_limit
should now be in the latest hotfix
from phantom-camera.
I was considering making a list before the release, but decided not to in the end, as it would take quite some time to do. Given, writing the release notes and documentation were quite a large task alone. So didn't think it would have been worth the effort, as I imagined most wouldn't use many of the functions, and so would make for a relatively painless transition.
What I didn't know was that creating C# wrappers was a thing that people did, let alone something you could do, until yesterday…
It was the safest way to interact with a PCam in C# since I gotta magic-string every function calls, so might as well have the magic strings in a single class rather than scattered around. If you want the file, as a way to either add very rough C# support or get inspired to make your own, I can give it to you.
set_limit
andget_limit
should now be in the latest hotfix
Thank you!
from phantom-camera.
It was the safest way to interact with a PCam in C# since I gotta magic-string every function calls, so might as well have the magic strings in a single class rather than scattered around.
Definitely, I never liked how that was how you had to reference GDscripts
in C#
and vice versa. Always felt weirdly unstructured.
If you want the file, as a way to either add very rough C# support or get inspired to make your own, I can give it to you.
I would be very keen to on adding better C# support if that's possible, as I always assumed it wasn't. So if you're willing to share it, then I can see if that's something the addon could include out-of-the-box.
from phantom-camera.
Closing this issue as the original report is now merged and released.
from phantom-camera.
Related Issues (20)
- C# wrapper HOT 2
- PhantomCameraManager Singleton HOT 1
- Camera3DResource using wrong layers for Cull Mask? HOT 4
- Script assumes presence of a tween HOT 7
- Framed Follow viewfinder conflict with debug_draw_3d addon HOT 7
- Error when switching from a 3D scene with a PCamHost to one with only a PCam HOT 2
- Identifier "PhantomCamera2D" not declared in the current scope HOT 1
- Prevent PCam2D Limit from resetting if an invalid path is applied
- Cannot set "follow_mode" (from c#) HOT 1
- Allow nesting of cameras withinin Nodes HOT 4
- PhantomCameraHost cannot be added as a child for my Camera2D HOT 2
- Unable to update to newest version if PhantomCamera node exists in project HOT 7
- Bug that can cause a PhantomCamera3D set to _not_ tween on load to tween anyway (and suggested fix) HOT 1
- Refactor PhantomCamera and its host HOT 8
- PC Host error: "Nonexistent function 'get_global_transform' in base 'Nil'.` HOT 3
- While in Third Person mode the Offset and SpringArm don't update on editor HOT 9
- Godot 4.3 Beta 1 - 0.7.2 install spams console with errors about "PhantomCameraManager" not declared HOT 18
- _on_phantom_camera_2d_tween_completed': Method not found. HOT 1
- Tweening of FOV/Near/Far properties ends on incorrect values HOT 2
- Errors upon installation into fresh project HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phantom-camera.