Giter Site home page Giter Site logo

Comments (1)

HeyZoos avatar HeyZoos commented on July 27, 2024

So it turns out this was due to a blueprint corruption. I needed to delete and recreate the blueprint. Here are some relevant things I found. If you have a blank Details panel then this might help you:

image

https://forums.unrealengine.com/development-discussion/c-gameplay-programming/28537-uproperty-member-vars-reset-to-null-by-objectinitializer

I take it from the context of that AnswerHub question that this object of yours is blueprinted? It seems as though the CDO for that blueprint was saved with a null component. Thus, after running the constructor, the defaults are copied over to your object and the component is nullified. You should be able to tell if this is the case by getting the object instance somewhere in your code and looking at it with the debugger.

Components should be VisibleAnywhere, VisibleInstanceOnly or VisibleDefaultsOnly, never editable. Components being pointers, an editable component means you can edit the pointer to the component itself rather than the contents of the component, for instance allowing the component to be nullified. Which might be what somehow happened here along the way.

If this theory is correct, in order to get rid of the nullified component, you'll have to get rid of the current blueprint CDO. Unfortunately where this CDO exists is something I'm not clear on. I think part of it is in the blueprint asset itself, and some derived data is also processed in the Derived Data Cache. Last time I've had issues with undesirable defaults saved to a blueprint CDO, I managed to clear it up by deleting the blueprint, deleting the DDC folders (Engine/DerivedDataCache + MyGame/DerivedDataCache) and then recreating.

https://community.gamedev.tv/t/sphere-collision-details-panel-not-visible/71343/4

TLDR; Replace the corrupt SprungWheel BP.

I had the same problem in 4.20.3. except when I changed back to UStaticMeshComponent, the details panel remained blank. even after restarting Unreal.

Then I realised I had to comment out the CreateDefaultSubobject lines, build, uncomment and rebuild, the details panel then appeared. and was able to keep them as UStaticMeshComponent. this tactic wouldn’t work for USphereComponent though. those panels would never appear.

Then I discovered I could make the details appear in some weird format by changing VisibleAnywhere to EditAnywhere. but I think some options were missing, like Simulate Physics, MassInKg etc. though it’s all jumbled around. maybe they are there somewhere. 😛

After countless re-compiles & engine restarts, I managed to get the USphereComponents to show somehow. but then the AxleWheelConstraint details wouldn’t show… what a mess.

After more digging. I learned that the issue is the BP is corrupting/failing to adapt to changes in the source files. So I created a new BP of the SprungWheel class and all was visible as it should be. Kinda ***** that we have to recreate the BP every time we add/change components. but at least it works.

from als-community.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.