public void PushTo(VoosActor actor) { string[] tags = joinedTags.Split(new char[] { ' ', ',', '\n' }); tags = Array.FindAll(tags, tag => tag != ""); actor.SetTags(tags); // HACK FOR CLONES actor.ApplyPropertiesToClones(); }
void OnSoundPicked(string sfxId) { string lastSfxId = actor.GetSfxId(); undoStack.PushUndoForActor( actor, $"Set sound effect for {actor.GetDisplayName()}", actor => { actor.SetSfxId(sfxId); actor.ApplyPropertiesToClones(); }, actor => { actor.SetSfxId(lastSfxId); actor.ApplyPropertiesToClones(); }); }
public void PushTo(VoosActor actor) { Vector3 rotEuler = actor.GetRenderableRotation().eulerAngles; rotEuler.y = yaw; actor.SetRenderableRotation(Quaternion.Euler(rotEuler.x, rotEuler.y, rotEuler.z)); actor.SetRenderableOffset(offset); // HACK FOR CLONES actor.ApplyPropertiesToClones(); }
void ToggleHideInPlayMode(bool value) { if (actor == null) { return; } bool prevValue = actor.GetHideInPlayMode(); undoStack.PushUndoForActor( actor, $"Set hide for {actor.GetDisplayName()}", actor => { actor.SetHideInPlayMode(value); actor.ApplyPropertiesToClones(); }, actor => { actor.SetHideInPlayMode(prevValue); actor.ApplyPropertiesToClones(); }); }
public void PushTo(VoosActor actor) { actor.SetDescription(description); // HACK FOR CLONES actor.ApplyPropertiesToClones(); }
public void PushTo(VoosActor actor) { actor.SetDisplayName(name); // HACK FOR CLONES actor.ApplyPropertiesToClones(); }
void RefreshClones() { actor.ApplyPropertiesToClones(); }