Jump to content

Recommended Posts

Posted

Hello every one !

Today i wanted to add c++ code to object but looks to accept only lua script ?‍♂️

It is possible to add c++ into this box

831746215_Cisforwhat..thumb.PNG.e254eb6a9f7d0820adb68b4f59c6b385.PNG

 

Or we just use c++ into app.cpp (add class but every thing is connected to the app file) ?

 

 

ART

CODE

SOUND

Posted
8 minutes ago, Gonan said:

hi Josh, I can't find any reference to Actor in the API documentation, is this intentional?

 

Yeah it’s not exactly a regular class because it must have a class of your own derived from it. There is no default functionality.

Let's build cool stuff and have fun. :)

Posted
3 minutes ago, SpiderPig said:

Is this the correct way to use it?


//Header.h
class CustomActor : public Actor
{
public:
	virtual void UpdatePhysics();
};

//CPP.cpp
void CustomActor::UpdatePhysics()
{
	//Do Stuff
}

 

Yes

  • Thanks 1
  • Upvote 1

Let's build cool stuff and have fun. :)

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...