Category: Unreal
-
Components
Component Nedir? Blueprint editörde sol tarafta aktörümüze eklediğimiz, staticmesh, collider vb unsurlara component diyoruz. Her aktörün en azından bir tane componenenti olur (default scene root). Var olan componentler dışında kendi componentlerimizi de üretebiliriz. Component Nasıl Eklenir Hali hazırda blueprint editörün sol panelinde Add butonu ile ekleyebiliriz. Fakat biz burada C++ ile nasıl ekleyebileceğimizi göreceğiz. Class…
-
Nesneleri Hareketlendirmek
Hareket Fonksiyonları Oyun yapıyorsak nesnelerimizi hareket ettirmemiz gerekli. Bunu c++ ile yapabilmek için Actor sınıfının bize sağlamış olduğu bazı fonksiyonlar var. Bu fonksiyonlar benzer isimlerle blueprint’te de mevcut. Objelerimize mutlak konum veya rotasyon atamak için “SetActorLocation” ve “SetActorRotation” fonksiyonlarını kullanabiliriz. Başka bir şekilde ifade etmek gerekirse nesnemiz konumu ve açısını ayarlıyoruz. Fakat mutlak bir son…
-
Debug Text & Shapes
Debug Text Metin halinde çıktı almak için iki tane metodumuz var: Aynı işlevi gören blueprint node’ları aşağıda verilmiştir. Formatlı Metinler Tıpkı C dilindeki printf fonksiyonu gibi formatlı bir şekilde çıktı almamız da mümkündür: 💡 When using %s parameters to include FStrings, the * operator must be used to return the TCHAR* required for the %s parameter. Debug…
-
Save-Load Game
Öncelikle kaydetmek istediğimiz özellikleri bir sınıf içinde topluyoruz. Bu sınıf USaveGame sınıfından miras almalı. Ayrıca default constructorımızı da yazdık: Daha sonra istediğimiz yerden LoadGameFromSlot, SaveGameToSlot ile save-load işlemini gerçekleştirebiliyoruz:
-

Kartlardan grid trim sheet oluşturmak
İskambil kartlarından bir trim/sprite sheet (artık nasıl adlandırmak daha uygun olur bilemiyorum) oluşturmak için gerekli python kodu: images isimli klasörden isim sırasına göre iskambil kağıdı resimlerini okuyup belirtilen satır/sütun sayısına göre bir karesel bir 4k texture içine diziyor. Kodun çoğunu chatgpt yazdı(cidden iyi iş çıkardı) bazı modifiyeler yaptım üzerinde. Kodu kullanabilmek için öncelikle pillow kütüphanesini…
-
Assert in Unreal
assert will terminate the program (usually with a message quoting the assert statement) if its argument turns out to be false. It’s commonly used during debugging to make the program fail more obviously if an unexpected condition occurs.https://stackoverflow.com/questions/1571340/what-is-the-assert-function check, verify, ensure https://dev.epicgames.com/documentation/en-us/unreal-engine/asserts-in-unreal-engine
-

-

-

-

-

Basic Movements
Firstly we should implement enhanced input system Input Action Mapping Difference between “Orient Rotation to Movement” and “Use Controller Desired Rotation”———————————————————–You probably won’t see much difference for AI-controlled characters, but for your player character the difference is this:“Orient Rotation to Movement”: Your character will turn to face the direction of travel. No matter which way…
-

-

Blender Script for fbx Scaling for Unreal Engine
This is a sample script for changing scene unit (1 to 0.01) and scaling objects (100x)
-

-

-

C4458
You code is actually correct and the error you are getting is technically not an error but a warning. However, it is good practice to have your code compile without warnings so Unreal has the compiler configured to treat warnings as errors so you are forced to deal with them. The warning is that the…
