personal notes

1. Error building Player because scripts had compiler errors appeared in unity, because the file that referenced UnityEditor was not recognized, it is best to put it directly in the Editor directory.

2. Game development unity editor extended knowledge series: Resource modification is immediately written to disk AssetDataBase.SaveAssets() first setDirty, then SaveAssetsEditorUtility.SetDirty(Object target) --Resources marked as changed Unity will not be saved to disk immediately, this Need to call when: AssetDataBase.SaveAssets() AssetDataBase.Refresh()

3. https://developer.android.com/codelabs/unity-gamepad#4  Unity uses PAD for AAB package construction

4. When setting PlayerSettings in the code, it is necessary to point out the corresponding platform PlayerSettings.Android. PlayerSettings.XX etc.

5、

[War chess game related knowledge]:

1 : The walking range of the character

Starting from the starting point, spread the nodes up, down, left, and right with the action power attenuation. Every time a node is spread, the action power will be reduced by 1 until the action power is gone. If the node to be spread is an obstacle (unreachable), then this node will not spread.
2 : When you click on the target point, you can avoid obstacles and walk to the target point
3 : When you encounter grass and snow, the movement range will be reduced.
4 : Only people who can swim can pass when encountering water, and units that can fly when encountering cliffs can Past
5 : Skill range of the combat module (can be classified as the first question)
6 : Editing of map data

Character movement algorithm (control the character to move on the path and automatically rotate):

6. [Unity Logs viewer plug-in ]: Log information appears in circles

7GooglePlay achievements, leaderboards, etc.: https://developers.google.com/games/services/common/concepts/achievements

Guess you like

Origin blog.csdn.net/LiziToAoi/article/details/126847133