xenko icon indicating copy to clipboard operation
xenko copied to clipboard

[Request] How-to/Sample for custom component, processor, render, asset etc.

Open dfkeenan opened this issue 9 years ago • 5 comments

Hi,

There are plenty of samples that cover using most if not all the out of the box components/systems/assets. But nothing covering creating your own (or at least that I could find).

Could you please create a How-to/sample(s) that covers the following topics:

  • Custom Entity Component. Including:
    • Component Type
    • Component processor
    • Component render
  • Custom Asset. Including:
    • Asset Type
    • Importing
    • Game Studio integration importing etc. (if possible)
    • Building

Cheers, dfkeenan

dfkeenan avatar Feb 26 '16 02:02 dfkeenan

Help wanted indeed.

A big question I have right now is, is it even possible to create custom assets and importers? By that can I make it so Game Studio know about them?

dfkeenan avatar Feb 10 '17 11:02 dfkeenan

@dfkeenan Have you figured out anything so far?

stefnotch avatar Nov 20 '17 16:11 stefnotch

@stefnotch I have managed to make Custom Entity Component with processor/renderer. But I never managed to get anywhere with assets.

dfkeenan avatar Nov 20 '17 22:11 dfkeenan

@dfkeenan So, you managed to get this to work: https://forums.xenko.com/t/writing-custom-components/415

The rest doesn't seem to be possible yet. If you were to pay for the pro-plus plan, it would probably be possible to add custom asset code to the Xenko Game Studio.

You can modify some of the default assets a little bit. If you check out: C:\Program Files\Silicon Studio\Xenko\GamePackages\Xenko.2.1.0.3\Templates\Assets\Scripts you are going to find the templates for a bunch of scripts. Those templates probably can be modified. It might also be possible to add new templates.

And, you can kind of use custom assets by choosing "raw asset" and writing a fair bit of code. (The code has to parse the raw/custom asset and do stuff with it.)

stefnotch avatar Nov 30 '17 16:11 stefnotch

@dfkeenan

https://trello.com/c/FAZ6etln/5-plugin-system

stefnotch avatar Jan 05 '18 08:01 stefnotch