Coder Social home page Coder Social logo

ue4getstart's Introduction

UnrealEngine4 入門資料

大前提の公式ドキュメント
https://docs.unrealengine.com/ja/index.html
大前提のAPIリファレンス(英語)
https://docs.unrealengine.com/en-US/API/index.html

公式入門用講座サイト
https://www.unrealengine.com/ja/onlinelearning-courses
公式が入門から各機能の詳細までの講座動画を配信しているサイト。利用は無料。英語での動画になりますが、大体の動画に日本語字幕ついてるので英語ができる必要はないです。
EpicGamseアカウントが必要。Google等のアカウントでのサインインも可

やったほうがいいだろう講座

UnrealEngine入門ラーニングパス

https://learn.unrealengine.com/home/LearningPath/92345?r=False&ts=637370909971115327
0からUE4を触るなら最低でもUnrealEngine最初の一時間とUnrealEngine入門のコースだけはやっておいたほうがいいです。それ以降に関しては開発に慣れてからで問題なし

0からやるなら公式ドキュメントのUE4を始めようもオススメ
https://docs.unrealengine.com/ja/GettingStarted/index.html

OculusとUnrealEngineを使用したVR開発

https://learn.unrealengine.com/home/LearningPath/117571?r=False&ts=637371106886673095
Oculusと書いてあるが、VRのコンテンツ開発に関して必要な情報が入っている。特に2コース目は最適化の話なのできいておいたほうがいい

Unityユーザー向けのUnrealEngine入門

https://www.unrealengine.com/ja/onlinelearning-courses/making-the-switch-from-unity-to-unreal-engine
Unityユーザー向けのコース

UE4 Tips

  • Tickは基本殺したほうがいい。使うとしても
    • マネージャのようなものでまとめてアクタで行いたいUpdate関数をぶん回す
    • Tickの更新秒数を遅くする

などの調整を行ったほうがいい

UE4 BluePrint Tips

よく使う関数一覧

SpawnActorFromClass : アクターをレベル上に生成する。名前の通りActor以下を継承しているクラスのみ
GetActorForward/RightVector : アクターの向きを取得する。

変数について

Instance Editable : publicみたいな感じ。
Blueprint Read Only : Constとほぼ同じ
Expose on Spawn : Spawn時に値を初期化できるようになる
Private : privateとほぼ同じ
Expose to Cinematics : シーケンサーのタイムラインから編集可能にする

UE4C++Tips

UFunctionについて

公式ドキュメント
https://docs.unrealengine.com/ja/Programming/UnrealArchitecture/Reference/Functions/index.html
UE4のリフレクションシステムが定義したC++関数を認識できるようにするマクロ
主に使うもの
・BlueprintCallable : ブループリントから呼び出しができるようにする。実行ピンあり

UFUNCTION(BlueprintCallable, Category = "CppTest")
void TestFunc1();

test

・BlueprintPure : ブループリントから呼び出しができるようにする。実行ピンなし

UFUNCTION(BlueprintPure, Category = "CppTest")
FString TestFunc2();

test2


値を返す際、複数の値を返したい場合は下記のように参照渡しの記述をする

UFUNCTION(BlueprintCallable, Category = "CppTest")
bool TestFunc3(int32 a, int32 &b, FString& c, bool &d);

test3

UPropertyについて

公式ドキュメント
https://docs.unrealengine.com/ja/Programming/UnrealArchitecture/Reference/Properties/index.html
使える型の種類などは上記のドキュメントを参考にしてください。
よく使うプロパティ指定子

  • BlueprintReadWrite:ブループリント側でプロパティをget/setできるようにする指定子
  • BlueprintReadOnly: ブループリント側でプロパティをgetのみできるようにする指定子
  • EditAnywhere:エディタ上で初期値の編集をできるようにする指定子。アクターなどの場合、Level上に置いたときにも編集ができるようにする。
  • EditDefaultsOnly:エディタ上で初期値の編集をできるようにする指定子。イベントグラフ上でのみ編集可能
  • Category:UFUNCTIONと同じ。

ue4getstart's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.