jan.aler Posted April 11, 2020 Share Posted April 11, 2020 I am having trouble with the fields in my C# component not showing up in the Node Properties section of the Parameters window. I have a PlayerJump component attached to an object of type ObjectMeshStatic with 2 fields which I want to be able to modify in-editor. One of them is a jump key, a key on the keyboard I want to use for jumping, and a jump force. using Unigine; [Component(PropertyGuid = "7f93b2a9029f5bf4d7fdd6c350ef8d4696b903ed")] public class PlayerJump : Component { [Parameter(Title = "Jump Key")] public Input.KEY jumpKey = Input.KEY.SPACE; [Parameter(Title = "Jump Force")] public float jumpForce = 10f; private BodyRigid rigidBody; private void Init() { rigidBody = node.ObjectBodyRigid; } private void Update() { if(Input.IsKeyDown(jumpKey) && rigidBody) { rigidBody.AddForce(vec3.UP * jumpForce); } } } Neither of them show up in the editor (demonstrated in the included GIF), even if I make them public or make them private and add the ShowInEditor attribute. The fields don't show up in my current project, a new clean project or even the C# Third Person Platformer demo. Is there perhaps a tick box I haven't ticked on somewhere or am I declaring the properties wrong or is there something else going on? Link to comment
silent Posted April 11, 2020 Share Posted April 11, 2020 Hi Jan, Could you please send us engine log.html file from <Project_Dir>/bin directory? Maybe there is some issues with .NET Core installation? Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
jan.aler Posted April 11, 2020 Author Share Posted April 11, 2020 Hello! Thank you for your fast response. I've sent the log files to you in a PM. Link to comment
silent Posted April 11, 2020 Share Posted April 11, 2020 Thanks! Could you please try to do a manual reimport of your .cs component. Right click on *.cs file in Asset Browser and select Reimport option. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
jan.aler Posted April 11, 2020 Author Share Posted April 11, 2020 Reimporting doesn't seem to be doing anything. Maybe it's an issue with my installation. I'll try reinstalling my Unigine Browser, SDK and .NET Core. Link to comment
silent Posted April 11, 2020 Share Posted April 11, 2020 You also can switch to Console to see if there any errors in compilation itself: How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
abdul.hadi Posted April 11, 2020 Share Posted April 11, 2020 i think that u have to add [ShowInEditor] before : [ShowInEditor] [Parameter(Title = "Jump Key")] public Input.KEY jumpKey = Input.KEY.SPACE; Link to comment
jan.aler Posted April 11, 2020 Author Share Posted April 11, 2020 (edited) Ok, reinstalled everything. The original project still doesn't want to show the fields even after manually reimporting the component several times like you told me, however pasting the contents of the PlayerJump class into a new component class created in a new clean project seems to remove the issue even for entirely new components, so I guess the issue lied in the previous installation or lies in the project itself, because the original .cs file still doesn't work even in the new project. Thank you for your help! Edited April 11, 2020 by jan.aler Link to comment
silent Posted April 11, 2020 Share Posted April 11, 2020 If possible could you please zip the data folder of your problematic project and upload it somewhere (you can use our secure ftp as well)? We want to find out what is the root cause of this issue. Looks like wrong filesystem guids, but I'm not sure yet. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
jan.aler Posted April 11, 2020 Author Share Posted April 11, 2020 (edited) Nevermind, made a new project and it doesn't work again. I'll send you the folder through PMs. Edited April 11, 2020 by jan.aler Link to comment
vasiliy.kuznetsov Posted June 1, 2020 Share Posted June 1, 2020 (edited) Hello everyone! Did You solve this problem? I have the same issue I guess... Edited June 1, 2020 by vasiliy.kuznetsov Link to comment
silent Posted June 1, 2020 Share Posted June 1, 2020 There is a bug in 2.11.x SDK that prevents fields to show up if you have spaces in AssemblyName inside *.csproj file. You can fix it by modifying *.csproj file manually: How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts