Class ProjectWindowUdonSharpAssetFactory
- Namespace
- JLChnToZ.VRC.Foundation.Editors
A customizable factory for creating UdonSharp assets in the project window.
public sealed class ProjectWindowUdonSharpAssetFactory : EndNameEditAction
- Inheritance
-
ProjectWindowUdonSharpAssetFactory
- Extension Methods
Methods
Action(int, string, string)
public override void Action(int instanceId, string pathName, string resourceFile)
Parameters
CreateAsset(string, string)
Create an U# class asset in the project window.
public static void CreateAsset(string typeName, string template = null)
Parameters
typeNamestringThe name of the class. Spaces are not allowed.
templatestringThe template of the class. If null or empty, a default template will be used.
Remarks
The template should contain a #CLASS# placeholder which will be replaced with the class name.