Comments (3)
Found my problem with Children not having WasVisible
I was calling it in Render rather than Update :(
Of course, in Render, it won't have been set yet it seems as swithcing to Update fixed it
from castle-engine.
Hmm : Testing TCastleScene(ActiveScene.Items[0]).WasVisible actually also returned false so maybe there's another problem?
from castle-engine.
It's a deliberate feature that TCastleScene.WasVisible doesn't check whether children scenes are visible. The general rule is:
- TCastleScene-specific features (like this WasVisible) do not care/apply to children scenes.
- Only TCastleTransform features (like TCastleTransform.Exists) apply to children as well.
I know it's not ideal (it would be easier to say "everything affects children" or "nothing affects children"), but this is a practical situation that is flexible and comfortable, so we'll keep this.
I see the docs have not been clear about it, fixed.
Hmm : Testing TCastleScene(ActiveScene.Items[0]).WasVisible actually also returned false so maybe there's another problem?
I tested examples\viewport_and_scenes\test_was_visible\
, it correctly changes WasVisible
. Please submit a testcase if this doesn't work for you.
from castle-engine.
Related Issues (20)
- Components do not receive OnRelease events inside TCastleScrollView
- Container.ForceCaptureInput can crash with Segmentation Fault while processing notifications under some unexpected circumstances HOT 2
- Network messages containing non-ascii characters are not sent HOT 4
- OBJ loading errors HOT 20
- Delphi Compilation Order HOT 7
- Delphi Examples - Adding code directory to project screws up dpr HOT 2
- SaveNode GLTF support HOT 2
- CGE editor as universal binary on macOS -- with both x86_64 and Aarch64 (Arm64) versions
- macOS: Detect VS Code in /Applications/... standard path HOT 2
- Failed to detect VSCode on MacOS
- error installing castle_window.lpk HOT 2
- ExposeTransform design Mode vs Runtime mode HOT 6
- PositionFromWorld variant HOT 4
- Missing ifdef fpc in castleinternaltools.pas - 519 HOT 2
- Small Vector3 components are displayed as zeroes (which is at least confusing)
- TImageTextureNode - add a URL property? HOT 5
- Looking for Windows developer setup on GitHub HOT 3
- TTransformNode.Visible needs proper functionality
- Recent MimeType changes seem to be preventing simple file-based URL loads. HOT 1
- On non-Windows, editor has case-sensitive rules for file-extensions to show FileViewPanel HOT 5
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 castle-engine.