static void CreateObiCloth(MenuCommand menuCommand) { GameObject go = new GameObject("Obi Emitter"); ObiEmitter emitter = go.AddComponent <ObiEmitter>(); ObiEmitterShapeDisk shape = go.AddComponent <ObiEmitterShapeDisk>(); ObiParticleRenderer renderer = go.AddComponent <ObiParticleRenderer>(); shape.Emitter = emitter; ObiEditorUtils.PlaceActorRoot(go, menuCommand); }
static void CreateObiRod(MenuCommand menuCommand) { GameObject go = new GameObject("Obi Tearable Cloth", typeof(ObiTearableCloth), typeof(ObiTearableClothRenderer)); ObiEditorUtils.PlaceActorRoot(go, menuCommand); }
static void CreateObiRod(MenuCommand menuCommand) { GameObject go = new GameObject("Obi Rod", typeof(ObiRod), typeof(ObiRopeExtrudedRenderer)); ObiEditorUtils.PlaceActorRoot(go, menuCommand); }
static void CreateObiEmitterShapeImage(MenuCommand menuCommand) { GameObject go = new GameObject("Image", typeof(ObiEmitterShapeImage)); ObiEditorUtils.PlaceActorRoot(go, menuCommand); }
static void CreateObiRod(MenuCommand menuCommand) { GameObject go = new GameObject("Obi Softbody", typeof(SkinnedMeshRenderer), typeof(ObiSoftbody), typeof(ObiSoftbodySkinner)); ObiEditorUtils.PlaceActorRoot(go, menuCommand); }