Skip to main content

Running the Official Sample

Use the official sample to try out hair and clothing physics. For your first run, choose the latest v1.22.0 release. To try it in UE 5.3–5.7, use the v1.21.0 sample.

note

The v1.22.0 sample was made in UE 5.8. The plugin itself supports UE 5.3–5.8, but the sample's assets do not open in 5.7 or earlier.

What the Sample Contains​

The top level of the KawaiiPhysics repository is structured as follows.

KawaiiPhysics/
├── Config/
├── Content/
│ └── KawaiiPhysicsSample/
│ ├── L_KPS_AllExamples.umap ← Level with the exhibits of all themes
│ ├── Examples/ ← Exhibits by theme
│ ├── Presets/ ← Settings presets
│ ├── Model/
│ └── Other/
├── Plugins/
│ ├── KawaiiPhysics/ ← The plugin itself (C++ source)
│ └── KawaiiPhysicsDev/ ← Development plugin (automated tests etc.; not shipped)
└── KawaiiPhysicsSample.uproject ← Open this project file
ItemDetails
Project fileKawaiiPhysicsSample.uproject
Sample levelContent/KawaiiPhysicsSample/L_KPS_AllExamples
UE versions supported by the v1.22.0 plugin5.3–5.8 (see the compatibility table for details)

The UE versions in this table describe the plugin's supported range. They do not guarantee that the sample's assets and levels will open in a different UE version.

info

The Plugins/KawaiiPhysics folder included in the repository is C++ source code. Opening the project as-is requires building the plugin. If you do not have a build environment, replace it with a precompiled build using the steps for users without a build environment below.

Getting the Sample Project​

Pin your download to tag 20261130-v1.22.0. The KawaiiPhysicsSample.uproject is configured for UE 5.8 and enables UE 5.8's ModelContextProtocol, EditorToolset, and SlateInspectorToolset.

git clone --branch 20261130-v1.22.0 --depth 1 https://github.com/pafuhana1213/KawaiiPhysics.git

If building from C++ source, prepare a UE 5.8 build environment. If you do not have one, use a precompiled build as described in Method B.

v1.21.0 (For UE 5.3–5.7)​

The sample at tag 20260624-v1.21.0 is configured for UE 5.3. Its exhibit layout differs from v1.22.0.

Development Version master​

master may contain work in progress for the next version. To try it, build from source using Method A. The released precompiled builds may not be compatible with the development content in master.

git clone --branch master --depth 1 https://github.com/pafuhana1213/KawaiiPhysics.git
tip

Open the sample with the UE version specified by the version you downloaded. See Method A or B below for the steps that apply to your download.


Method A: Users with a Build Environment (Visual Studio + C++)​

If you have an environment that can build UE C++ code, such as Visual Studio, you can open it directly from source.

note

Prepare a build environment that matches your UE version in advance, such as Visual Studio (Game development with C++ workload). See the official documentation for setup instructions.

Steps​

  1. (Optional) Right-click KawaiiPhysicsSample.uproject and run Generate Visual Studio project files
  2. Double-click KawaiiPhysicsSample.uproject
  3. When the dialog "Missing modules. Would you like to rebuild them?" appears, choose Yes
  4. The plugin will compile, and the editor will launch once it finishes

Once the build succeeds, you can try the sample with the source code from the version you downloaded. This method is also recommended if you want to modify the plugin and experiment with its behavior.

Continue to Open and play the sample level.


Method B: Users without a Build Environment (Use Release/Fab Precompiled Binaries)​

The steps below are for the v1.22.0 sample project. If you do not have a C++ build environment, open the sample using a precompiled (prebuilt) plugin. You can choose either the GitHub Release version or the Fab version.

warning

Precompiled versions are specific to each UE version. For the v1.22.0 sample, use the one for UE 5.8.

Remove the development plugin

The v1.22.0 sample enables KawaiiPhysicsDev, a C++ plugin for development. The distributed precompiled builds do not include it, so do the following first with either method. This is not needed for the v1.21.0 sample.

  1. Delete the entire Plugins/KawaiiPhysicsDev folder in the sample project
  2. Open KawaiiPhysicsSample.uproject in a text editor and remove this entry from Plugins
{
"Name": "KawaiiPhysicsDev",
"Enabled": true
},

Method B-1: Replace with the GitHub Release Precompiled Build​

Replace the plugin in the sample with the prebuilt plugin for your UE version from GitHub Releases. If the release's Assets do not have a zip for your UE version yet, wait until it is published or use Method A.

  1. From Assets of the v1.22.0 release, download the zip for UE 5.8 (KawaiiPhysics_5.8_1.22.0.zip)
  2. Extracting the zip gives you a KawaiiPhysics folder that includes a Binaries folder
  3. Delete the entire Plugins/KawaiiPhysics folder in the sample project you obtained
  4. Place the extracted precompiled KawaiiPhysics folder into Plugins/ instead
KawaiiPhysicsSample/
└── Plugins/
└── KawaiiPhysics/ ← Delete the source version and replace with the precompiled one
├── Binaries/ ← Contains the prebuilt binaries
├── Content/
└── KawaiiPhysics.uplugin
  1. Double-click KawaiiPhysicsSample.uproject and open it with the matching UE version → The editor launches without building

Method B-2: Use the Fab Version (Plugin Installed to the Engine)​

If you have already installed KawaiiPhysics to your engine from Fab, simply removing the source plugin from the project makes it use the precompiled version installed in the engine.

  1. Confirm that you have installed KawaiiPhysics (Fab version) for your UE version via the Epic Games Launcher
  2. Delete the entire Plugins/KawaiiPhysics folder in the sample project you obtained
  3. Double-click KawaiiPhysicsSample.uproject and open it with the matching UE version → With no plugin inside the project, the engine-side Fab version is loaded, and it launches without building
note

In Method B-2, if you leave the project's Plugins/KawaiiPhysics in place, UE will prioritize the project-side source plugin and try to build it. Be sure to delete the entire folder.

Continue to Open and play the sample level.


Open and Play the Sample Level​

Once the project launches, check out the demo. The level to open depends on the version you downloaded.

VersionLevel to open
v1.22.0 / masterL_KPS_AllExamples (loaded first when the project opens)
v1.21.0L_KawaiiPhysicsSample
  1. Open Content/KawaiiPhysicsSample/ in the Content Browser
  2. Double-click the level from the table above
  3. Click Play or Simulate in the toolbar
  4. You can watch the sample character's hair and clothing sway

L_KPS_AllExamples open in the editor, with the toolbar Play button outlined in red

L_KPS_AllExamples opened in UE 5.8. The red outline marks the Play button. The v1.21.0 sample has a different exhibit layout.

tip

Moving and rotating the character makes the swaying parts move more dramatically due to inertia. Open the Animation Blueprint, change the parameters on the KawaiiPhysics node, and compare how the behavior differs.

Common Issues​

Watch Out for Version Mismatches​

The plugin's supported UE versions alone do not tell you whether the sample will launch. Open the project using the UE version specified in the project configuration. If you use a precompiled plugin, match its build's UE version to the one you use to open the project. If you need to try opening the project or converting assets in another UE version, do so on a backup and verify the result.

"This project needs to be rebuilt" appears and the editor will not launch​

Plugins/KawaiiPhysics or Plugins/KawaiiPhysicsDev is still in source form (not yet built).

  • If you have a build environment → allow the rebuild in Method A
  • If you do not have a build environment → replace it with a precompiled build in Method B

Two plugins are loaded and conflict​

If the plugin exists both in the engine (Fab version) and in the project (Plugins/KawaiiPhysics), they conflict. Keep only one of them (see Method B-2).

Next Steps​

See Feature Samples for the themed exhibits.