Accessing custom *scene* attributes?
Ignis
Member Posts: 72
I wonder if I'm just blind and not seeing this in the editor? I can access all of the Game attributes and actor attributes (custom or built-in), but I just added a custom scene attribute and I can't determine how to access it from the Expression Editor pop-up window.
The reason I want to do this: I have a camera window (currently IPhone size) that moves about a larger scene, let's call it "medium city" for sake of discussion, 720w by 680h. In future scenes, however, I might increase this scene size to "large city" at 1200w by 1000h or something like that. I'd really like to read these dimensions for multiple usage methods, i.e. determining where in each scene an object should be moved to, or to re-spawn in the upper-right corner which would vary depending on the scene size... hopefully that's a clear explanation?
Help is appreciated as always, during this learning stage...
The reason I want to do this: I have a camera window (currently IPhone size) that moves about a larger scene, let's call it "medium city" for sake of discussion, 720w by 680h. In future scenes, however, I might increase this scene size to "large city" at 1200w by 1000h or something like that. I'd really like to read these dimensions for multiple usage methods, i.e. determining where in each scene an object should be moved to, or to re-spawn in the upper-right corner which would vary depending on the scene size... hopefully that's a clear explanation?
Help is appreciated as always, during this learning stage...
Comments
I usually have one actor in every Scene that sits just out of view and "broadcasts" things like Scene width, height, the camera position etc... to global game attributes that all the other Actors in the Scene can access.