reepblue Posted October 8, 2023 Share Posted October 8, 2023 1. Create a json component file with these contents. { "component": { "properties": [ { "name": "filter", "label": "Filter", "value": "" }, { "name": "size", "label": "Size", "value": [0.0, 0.0, 0.0] } ] } } 2. Create an entity and attach the component script to it. 3. Change both values to anything. 4. Create a new entity, attach the same component. You should see that "Size" is back to 0,0,0, but the "Filter" property got carried over from the first entity. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Solution Josh Posted October 9, 2023 Solution Share Posted October 9, 2023 What was happening is the logic for retrieving string values from entities just wasn't in there, so string properties would just remain whatever their last value was. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.