M_MSCLoader_LoadAssets_LoadOBJ
piotrulos edited this page Apr 7, 2023
·
4 revisions
Note: This API is now obsolete.
Load (*.obj) file from mod assets folder and return as GameObject
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.2.11.286
C#
[ObsoleteAttribute("LoadOBJ is deprecated, please use AssetBundles instead.",
true)]
public static GameObject LoadOBJ(
<a href="T_MSCLoader_Mod">Mod</a> mod,
string fileName,
bool collider = true,
bool rigidbody = false
)
- mod
- Type: MSCLoader.Mod
Mod instance. - fileName
- Type: System.String
File name to load from assets folder (for example "beer.obj") - collider (Optional)
- Type: System.Boolean
Apply mesh collider to object - rigidbody (Optional)
- Type: System.Boolean
Apply rigidbody to object to affect gravity (don't do it without collider)
Type: GameObject
Returns unity GameObject
- How to install MSCLoader using MSCPatcher
- MSCPatcher explained
- How to install mods
- Official experimental linux support
- Unofficial tutorial for linux (wine/proton)
- Install Visual Studio for MSCLoader
- Install template for Visual Studio
- How to use templates
- Debugging your mods in Visual Studio
- Enable DevMode to help with debugging
- Uploading and creating Self update feature for your mod or reference
- All Playmaker Global Variables and Events
- How to create and use Asset Bundles