Table of Contents

Class ProjectWindowUdonSharpAssetFactory

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

instanceId int
pathName string
resourceFile string

CreateAsset(string, string)

Create an U# class asset in the project window.

public static void CreateAsset(string typeName, string template = null)

Parameters

typeName string

The name of the class. Spaces are not allowed.

template string

The 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.