Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom UObject class crashes UE #8

Open
ghost opened this issue Mar 31, 2017 · 4 comments
Open

custom UObject class crashes UE #8

ghost opened this issue Mar 31, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 31, 2017

Hi, thank you for you plugin, looks very promising.
Nevertheless, I was faced with difficulties.
When I added to TestClass.cs next code

public class MyTestComponent : UMonoActorComponent
{
    public string text = "text";
}

all works fine, but the folowing code crashes UE

public class MyTestObject : UObject
{
    public string text = "text";
}

What am I doing wrong?

@xiongfang
Copy link
Owner

There is no design to allow users to inherit from the UObject class, in fact, it is not necessary, like the Unity3D engine. Users just need to inherit from the UActorComponent class

@ghost
Copy link
Author

ghost commented Apr 1, 2017

There are logical entities that have no visual representation on scene (for example: skill, ability, quest) so there is no reason to implement them as components. Since structures can not inherit from each other, UObjects are the only option.

@xiongfang
Copy link
Owner

This feature has not been implemented at this stage, and may be later. Recommended to read data directly from the CSV file.

@ghost
Copy link
Author

ghost commented Apr 1, 2017

And write to what?
Inheritance is the basic principle of OOP, and UObjects is the only way to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant